summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/media.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/media.js b/src/content/media.js
index 770a43f..4b8f852 100644
--- a/src/content/media.js
+++ b/src/content/media.js
@@ -1,4 +1,5 @@
-ns.on("capabilities", event => {
+
+if ("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();