1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-05 11:32:20 +01:00

DOMRect did not work because of protectedAPIFeatures

This commit is contained in:
kkapsner 2018-09-08 00:05:56 +02:00
parent 9af7378139
commit 255c8e6bbf

View File

@ -233,8 +233,14 @@
dataURL: getDataURL(this, prefs) dataURL: getDataURL(this, prefs)
}); });
} }
const protectedAPIFeatures = prefs("protectedAPIFeatures");
if (funcStatus.active && prefs("protectedAPIFeatures")[name]){ if (
funcStatus.active &&
(
!protectedAPIFeatures.hasOwnProperty(name) ||
protectedAPIFeatures[name]
)
){
if (funcStatus.mode === "ask"){ if (funcStatus.mode === "ask"){
funcStatus.mode = ask({ funcStatus.mode = ask({
window: window, window: window,