fix broken card styling fix :-)

This commit is contained in:
Damien Elmes 2021-02-03 22:32:55 +10:00
parent 7e8886c352
commit 39c6429fe2

View File

@ -61,6 +61,8 @@ async function _updateQA(
renderError("HTML")(error); renderError("HTML")(error);
} }
await _runHook(onUpdateHook);
// wait for mathjax to ready // wait for mathjax to ready
await MathJax.startup.promise await MathJax.startup.promise
.then(() => { .then(() => {
@ -70,7 +72,6 @@ async function _updateQA(
return MathJax.typesetPromise(qa.slice(0, 1)); return MathJax.typesetPromise(qa.slice(0, 1));
}) })
.catch(renderError("MathJax")); .catch(renderError("MathJax"));
await _runHook(onUpdateHook);
// and reveal when processing is done // and reveal when processing is done
await qa.fadeTo(fadeTime, 1).promise(); await qa.fadeTo(fadeTime, 1).promise();