1
0
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:
kkapsner 2019-05-10 00:29:53 +02:00
parent 88537c7516
commit 983423dafa
2 changed files with 9 additions and 2 deletions

View File

@ -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;
}());

View File

@ -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