mirror of
https://github.com/ankitects/anki.git
synced 2025-11-23 13:07:12 -05:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue