mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Improved general performance when stack list is disabled
This commit is contained in:
parent
88537c7516
commit
983423dafa
2 changed files with 9 additions and 2 deletions
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;
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue