mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Code cleanup.
This commit is contained in:
parent
289cea0fc0
commit
01c1145e28
9 changed files with 81 additions and 61 deletions
|
@ -20,7 +20,9 @@
|
|||
const logging = require("./logging");
|
||||
|
||||
scope.check = function check({url, errorStack}){
|
||||
var match = checkBoth(errorStack, url, prefs.blockMode).match(/^(block|allow|fake|ask)(|Readout|Everything|Context|Input|Internal)$/);
|
||||
var match = checkBoth(errorStack, url, prefs.blockMode).match(
|
||||
/^(block|allow|fake|ask)(|Readout|Everything|Context|Input|Internal)$/
|
||||
);
|
||||
if (match){
|
||||
return {
|
||||
type: (match[2] === "Everything" || match[2] === "")?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue