mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 12:36:37 +02:00
Code cleanup and removed blockAll bug
blockAll did not block readout-API. This could be relevant if a user changes the setting and an open tab still holds a reference to a canvas-context.
This commit is contained in:
parent
30407e71a0
commit
af47ee8d87
4 changed files with 17 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global self, window, console, unsafeWindow, exportFunction, cloneInto */
|
||||
/* global self, window, CanvasRenderingContext2D, WebGLRenderingContext, console, unsafeWindow, exportFunction, cloneInto, checkURL, getDomainRegExpList */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
@ -225,7 +225,7 @@
|
|||
unsafeWindow,
|
||||
changedFunction.exportOptions
|
||||
): undef;
|
||||
case "block":
|
||||
//case "block":
|
||||
default:
|
||||
return undef;
|
||||
}
|
||||
|
@ -265,7 +265,7 @@
|
|||
switch (mode){
|
||||
case "block":
|
||||
blockMode.getContext.status = "block";
|
||||
blockMode.readAPI.status = "allow";
|
||||
blockMode.readAPI.status = "block";
|
||||
break;
|
||||
case "ask":
|
||||
blockMode.getContext.status = "ask";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue