mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Improved storage of protected API features
This commit is contained in:
parent
1430b89d55
commit
cc776b48de
6 changed files with 73 additions and 37 deletions
|
@ -251,8 +251,8 @@
|
|||
if (
|
||||
funcStatus.active &&
|
||||
(
|
||||
!protectedAPIFeatures.hasOwnProperty(name) ||
|
||||
protectedAPIFeatures[name]
|
||||
!protectedAPIFeatures.hasOwnProperty(name + " @ " + changedFunction.api) ||
|
||||
protectedAPIFeatures[name + " @ " + changedFunction.api]
|
||||
)
|
||||
){
|
||||
if (funcStatus.mode === "ask"){
|
||||
|
@ -383,8 +383,8 @@
|
|||
if (
|
||||
functionStatus.active &&
|
||||
(
|
||||
!protectedAPIFeatures.hasOwnProperty(name) ||
|
||||
protectedAPIFeatures[name]
|
||||
!protectedAPIFeatures.hasOwnProperty(name + " @ " + changedGetter.api) ||
|
||||
protectedAPIFeatures[name + " @ " + changedGetter.api]
|
||||
)
|
||||
){
|
||||
switch (functionStatus.mode){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue