diff --git a/sVim.safariextension/sVimTab.js b/sVim.safariextension/sVimTab.js index 0902155..2d10a92 100644 --- a/sVim.safariextension/sVimTab.js +++ b/sVim.safariextension/sVimTab.js @@ -495,7 +495,9 @@ sVimTab.checkBlacklist = function() { }; // Init sVimTab -safari.self.tab.dispatchMessage("sendSettings"); +if (window === window.top) { + safari.self.tab.dispatchMessage("sendSettings"); +} // Catch commands from global safari.self.addEventListener("message", function(event) {