mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
Added setting to whitelist parts of the canvas API
This commit is contained in:
parent
9d0cd04fc3
commit
f02246128e
7 changed files with 87 additions and 2 deletions
|
@ -59,6 +59,18 @@
|
|||
defaultValue: "nonPersistent",
|
||||
options: ["white", "nonPersistent", "constant", "persistent"]
|
||||
},
|
||||
{
|
||||
name: "apiWhiteList",
|
||||
defaultValue: {},
|
||||
keys: [
|
||||
"getContext",
|
||||
"toDataURL", "toBlob", "mozGetAsFile", "getImageData",
|
||||
"isPointInPath", "isPointInStroke",
|
||||
"fillText", "strokeText",
|
||||
"readPixels"
|
||||
],
|
||||
defaultKeyValue: false
|
||||
},
|
||||
{
|
||||
name: "useCanvasCache",
|
||||
defaultValue: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue