diff --git a/lib/intercept.js b/lib/intercept.js index 1e37ffa..64d51b3 100644 --- a/lib/intercept.js +++ b/lib/intercept.js @@ -233,8 +233,14 @@ dataURL: getDataURL(this, prefs) }); } - - if (funcStatus.active && prefs("protectedAPIFeatures")[name]){ + const protectedAPIFeatures = prefs("protectedAPIFeatures"); + if ( + funcStatus.active && + ( + !protectedAPIFeatures.hasOwnProperty(name) || + protectedAPIFeatures[name] + ) + ){ if (funcStatus.mode === "ask"){ funcStatus.mode = ask({ window: window,