diff options
author | gorhill <rhill@raymondhill.net> | 2015-02-07 00:01:13 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-02-07 00:01:13 -0500 |
commit | 46180aeb28f3996e795d0c5a05789b8c140987e1 (patch) | |
tree | a0e6e9b105d79dcf9033a7e0cf408e1041bb7f7d | |
parent | 7e0b4ab586c88afc98ba1a081866cae0b36b364b (diff) | |
parent | bb9e590cb09268afa435f380b8425668c7078000 (diff) | |
download | uBlock-46180aeb28f3996e795d0c5a05789b8c140987e1.zip uBlock-46180aeb28f3996e795d0c5a05789b8c140987e1.tar.gz uBlock-46180aeb28f3996e795d0c5a05789b8c140987e1.tar.bz2 |
Merge branch 'master' of github.com:gorhill/uBlock
-rw-r--r-- | platform/safari/vapi-client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/safari/vapi-client.js b/platform/safari/vapi-client.js index 0a9dd55..1d27e69 100644 --- a/platform/safari/vapi-client.js +++ b/platform/safari/vapi-client.js @@ -209,7 +209,7 @@ document.removeEventListener("DOMContentLoaded", firstMutation, true); firstMutation = false; var randEventName = uniqueId(); - window.addEventListener(randEventName, function(e) { + document.addEventListener(randEventName, function(e) { if(shouldBlockDetailedRequest(e.detail)) { e.detail.url = false; } @@ -225,7 +225,7 @@ type: t\ },\ bubbles: false\ });\ -dispatchEvent(e);\ +document.dispatchEvent(e);\ return e.detail.url === false;\ },\ wo = open,\ |