mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Safari: fix privileged/non-priveleged messaging
This commit is contained in:
parent
2378a63cf0
commit
bb9e590cb0
1 changed files with 2 additions and 2 deletions
|
|
@ -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,\
|
||||
|
|
|
|||
Loading…
Reference in a new issue