1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

Merge branch 'master' of github.com:gorhill/uBlock

This commit is contained in:
gorhill 2015-02-07 00:01:13 -05:00
commit 46180aeb28

View File

@ -209,7 +209,7 @@
document.removeEventListener("DOMContentLoaded", firstMutation, true); document.removeEventListener("DOMContentLoaded", firstMutation, true);
firstMutation = false; firstMutation = false;
var randEventName = uniqueId(); var randEventName = uniqueId();
window.addEventListener(randEventName, function(e) { document.addEventListener(randEventName, function(e) {
if(shouldBlockDetailedRequest(e.detail)) { if(shouldBlockDetailedRequest(e.detail)) {
e.detail.url = false; e.detail.url = false;
} }
@ -225,7 +225,7 @@ type: t\
},\ },\
bubbles: false\ bubbles: false\
});\ });\
dispatchEvent(e);\ document.dispatchEvent(e);\
return e.detail.url === false;\ return e.detail.url === false;\
},\ },\
wo = open,\ wo = open,\