1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added option to protect no part of the canvas API

This commit is contained in:
kkapsner 2019-04-27 22:37:25 +02:00
parent 8e628f9d13
commit 31bc324019
5 changed files with 17 additions and 3 deletions

View file

@ -166,6 +166,11 @@
return true;
};
}
else if (protectedPart === "nothing"){
return function(){
return false;
};
}
else {
return function(parts){
if (Array.isArray(parts)){

View file

@ -70,7 +70,7 @@
defaultValue: "readout",
urlSpecific: true,
options: [
"readout", "input", "everything"
"nothing", "readout", "input", "everything"
]
},
{