Skip to content

Commit

Permalink
Removed empty exportFunction() Chromium shim.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackademix committed Nov 15, 2019
1 parent 2434053 commit cbd8147
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions 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();
Expand Down
2 changes: 1 addition & 1 deletion 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;

Expand Down
3 changes: 0 additions & 3 deletions src/lib/UA.js
Expand Up @@ -10,9 +10,6 @@
// shims for non-Mozilla browsers
if (typeof chrome === "object" && !chrome.tabs) {
// content script shims
if (typeof exportFunction === "undefined") {
window.exportFunction = () => {};
}
}
}

Expand Down

0 comments on commit cbd8147

Please sign in to comment.