mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-31 09:01:56 +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)
|
||||
});
|
||||
}
|
||||
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user