1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-11 15:39:51 +02:00

Removed the wrong double stack issue.

This commit is contained in:
kkapsner 2014-12-15 21:11:04 +01:00
parent 1c0dc233a9
commit eeb734c655

View File

@ -112,8 +112,11 @@
var findme = callers.shift(); // Remove us from the stack
findme = findme.replace(/(:[0-9]+){1,2}$/, ""); // rm line & column
// Eliminate squashed stack. stack may contain 2+ stacks, but why...
var inDoubleStack = false;
callers = callers.filter(function(caller){
return caller.search(findme) === -1;
var doubleStackStart = caller.search(findme) !== -1;
inDoubleStack = inDoubleStack || doubleStackStart;
return !inDoubleStack;
});
msg += "\n\n" + _("sourceOutput") + ": ";
if (settings.showCompleteCallingStack){