1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-05-19 19:02:21 +02: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){ function checkStack(errorStack){
var callingStack = parseErrorStack(errorStack); if (settings.enableStackList){
return lists.get("stack").match(callingStack); const stackList = lists.get("stack");
if (stackList.length){
const callingStack = parseErrorStack(errorStack);
return stackList.match(callingStack);
}
}
return false;
} }
scope.checkStack = checkStack; scope.checkStack = checkStack;
}()); }());

View File

@ -22,6 +22,7 @@ Version 0.5.9:
- enabled copying from settings description when they are "hidden" - enabled copying from settings description when they are "hidden"
- fixed description for "show notifications" - fixed description for "show notifications"
- improved DOMRect performance - improved DOMRect performance
- improved general performance when stack list is disabled
known issues: known issues:
- if a data URL is blocked the page action button does not appear - if a data URL is blocked the page action button does not appear