Limit the reviewer.ts stack size
https://anki.tenderapp.com/discussions/beta-testing/1918-reliably-reproduced-bug-in-2124beta6#comment_48247959
This commit is contained in:
parent
38fabcef52
commit
67a8af0cbf
@ -42,7 +42,9 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
|
|||||||
qa.html(
|
qa.html(
|
||||||
"Invalid HTML on card: " +
|
"Invalid HTML on card: " +
|
||||||
err +
|
err +
|
||||||
("\n" + err.stack).replace(/\n/g, "<br />")
|
("\n" + err.stack)
|
||||||
|
.substring(0, 2000)
|
||||||
|
.replace(/\n/g, "<br />")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
_runHook(onUpdateHook);
|
_runHook(onUpdateHook);
|
||||||
|
Loading…
Reference in New Issue
Block a user