mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Improved general performance when stack list is disabled
This commit is contained in:
parent
88537c7516
commit
983423dafa
10
lib/check.js
10
lib/check.js
@ -92,8 +92,14 @@
|
||||
}
|
||||
|
||||
function checkStack(errorStack){
|
||||
var callingStack = parseErrorStack(errorStack);
|
||||
return lists.get("stack").match(callingStack);
|
||||
if (settings.enableStackList){
|
||||
const stackList = lists.get("stack");
|
||||
if (stackList.length){
|
||||
const callingStack = parseErrorStack(errorStack);
|
||||
return stackList.match(callingStack);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
scope.checkStack = checkStack;
|
||||
}());
|
@ -22,6 +22,7 @@ Version 0.5.9:
|
||||
- enabled copying from settings description when they are "hidden"
|
||||
- fixed description for "show notifications"
|
||||
- improved DOMRect performance
|
||||
- improved general performance when stack list is disabled
|
||||
|
||||
known issues:
|
||||
- if a data URL is blocked the page action button does not appear
|
||||
|
Loading…
x
Reference in New Issue
Block a user