mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
DOMRect did not work because of protectedAPIFeatures
This commit is contained in:
parent
9af7378139
commit
255c8e6bbf
1 changed files with 8 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue