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:
parent
88537c7516
commit
983423dafa
10
lib/check.js
10
lib/check.js
@ -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;
|
||||||
}());
|
}());
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user