Skip MediaSource patching where it's disabled by browser settings.

This commit is contained in:
hackademix 2019-04-29 10:31:19 +02:00
parent 43770cbc85
commit 4fa4e55b62
1 changed files with 2 additions and 1 deletions

View File

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