summaryrefslogtreecommitdiff
path: root/src/content/media.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/media.js')
-rw-r--r--src/content/media.js3
1 files changed, 1 insertions, 2 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();