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:
parent
9af7378139
commit
255c8e6bbf
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user