diff options
author | hackademix | 2019-11-10 12:48:53 +0100 |
---|---|---|
committer | hackademix | 2019-11-15 22:48:49 +0100 |
commit | cbd814754aba6a7e79ab01a851a119504e74a841 (patch) | |
tree | 7c7958aa32bdf14405d4107937a844ec87504160 /src | |
parent | 243405352459b38c9e3b9c8aa14b402e8715413b (diff) | |
download | noscript-cbd814754aba6a7e79ab01a851a119504e74a841.tar.gz noscript-cbd814754aba6a7e79ab01a851a119504e74a841.tar.xz noscript-cbd814754aba6a7e79ab01a851a119504e74a841.zip |
Removed empty exportFunction() Chromium shim.
Diffstat (limited to 'src')
-rw-r--r-- | src/content/media.js | 3 | ||||
-rw-r--r-- | src/content/webglHook.js | 2 | ||||
-rw-r--r-- | src/lib/UA.js | 3 |
3 files changed, 2 insertions, 6 deletions
diff --git a/src/content/media.js b/src/content/media.js index 8a9526b..687b9c3 100644 --- a/src/content/media.js +++ b/src/content/media.js @@ -1,5 +1,4 @@ - -if ("MediaSource" in window) ns.on("capabilities", event => { +if (typeof exportFunction === "function" && "MediaSource" in window) ns.on("capabilities", event => { debug("Media Hook", document.URL, document.documentElement && document.documentElement.innerHTML, ns.capabilities); // DEV_ONLY let mediaBlocker = !ns.allows("media"); let unpatched = new Map(); diff --git a/src/content/webglHook.js b/src/content/webglHook.js index 6b9c00a..6201338 100644 --- a/src/content/webglHook.js +++ b/src/content/webglHook.js @@ -1,4 +1,4 @@ -ns.on("capabilities", event => { +if (typeof exportFunction === "function") ns.on("capabilities", event => { debug("WebGL Hook", document.URL, document.documentElement && document.documentElement.innerHTML, ns.capabilities); // DEV_ONLY if (ns.allows("webgl")) return; diff --git a/src/lib/UA.js b/src/lib/UA.js index db5df9d..f679f95 100644 --- a/src/lib/UA.js +++ b/src/lib/UA.js @@ -10,9 +10,6 @@ // shims for non-Mozilla browsers if (typeof chrome === "object" && !chrome.tabs) { // content script shims - if (typeof exportFunction === "undefined") { - window.exportFunction = () => {}; - } } } |