Removed empty exportFunction() Chromium shim.
This commit is contained in:
parent
2434053524
commit
cbd814754a
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
// shims for non-Mozilla browsers
|
||||
if (typeof chrome === "object" && !chrome.tabs) {
|
||||
// content script shims
|
||||
if (typeof exportFunction === "undefined") {
|
||||
window.exportFunction = () => {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue