Removed empty exportFunction() Chromium shim.

This commit is contained in:
hackademix 2019-11-10 12:48:53 +01:00
parent 2434053524
commit cbd814754a
3 changed files with 2 additions and 6 deletions

View File

@ -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();

View File

@ -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;

View File

@ -10,9 +10,6 @@
// shims for non-Mozilla browsers
if (typeof chrome === "object" && !chrome.tabs) {
// content script shims
if (typeof exportFunction === "undefined") {
window.exportFunction = () => {};
}
}
}