mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Merge pull request #559 from evandroforks/show_full_javascript_stacktrace
Set to show the JavaScript exception message and stacktrace
This commit is contained in:
commit
dbedeef98d
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
|
||||||
try {
|
try {
|
||||||
qa.html(html);
|
qa.html(html);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
qa.text("Invalid HTML on card: " + err);
|
qa.html(
|
||||||
|
"Invalid HTML on card: " +
|
||||||
|
err +
|
||||||
|
("\n" + err.stack).replace(/\n/g, "<br />")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
_runHook(onUpdateHook);
|
_runHook(onUpdateHook);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue