Index: safari/ext/popup.js |
=================================================================== |
--- a/safari/ext/popup.js |
+++ b/safari/ext/popup.js |
@@ -8,11 +8,11 @@ |
// clicked. While Chrome loads it everytime you click the icon. So in order to |
// force the same behavior in Safari, we are going to reload the page of the |
// bubble everytime it is shown. |
-safari.application.addEventListener("popover", function() |
+safari.self.addEventListener("popover", function() |
{ |
document.documentElement.style.display = "none"; |
document.location.reload(); |
-}, true); |
+}); |
// Safari doesn't hide popovers automatically, when we change the active tab |
// programmatically, like when the options link is clicked. So we add an event |