Index: include.postload.js |
=================================================================== |
--- a/include.postload.js |
+++ b/include.postload.js |
@@ -358,6 +358,8 @@ |
document.addEventListener("mouseout", clickHide_mouseOut, true); |
document.addEventListener("click", clickHide_mouseClick, true); |
document.addEventListener("keydown", clickHide_keyDown, true); |
+ |
+ ext.onExtensionUnloaded.addListener(clickHide_deactivate); |
} |
// Called when user has clicked on something and we are waiting for confirmation |
@@ -388,7 +390,7 @@ |
document.removeEventListener("click", clickHide_mouseClick, true); |
document.removeEventListener("keydown", clickHide_keyDown, true); |
- if (!keepOverlays) |
+ if (keepOverlays !== true) |
{ |
lastRightClickEvent = null; |
@@ -403,6 +405,8 @@ |
var overlays = document.getElementsByClassName("__adblockplus__overlay"); |
while (overlays.length > 0) |
overlays[0].parentNode.removeChild(overlays[0]); |
+ |
+ ext.onExtensionUnloaded.removeListener(clickHide_deactivate); |
} |
} |