1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-31 18:40:20 +02: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)
});
}
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,