From 39c6429fe2f8dfa1c4538900bbb8ed146a6064f0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 3 Feb 2021 22:32:55 +1000 Subject: [PATCH] fix broken card styling fix :-) --- qt/aqt/data/web/js/reviewer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/data/web/js/reviewer.ts b/qt/aqt/data/web/js/reviewer.ts index 5b2a8af94..4ed0aa0c6 100644 --- a/qt/aqt/data/web/js/reviewer.ts +++ b/qt/aqt/data/web/js/reviewer.ts @@ -61,6 +61,8 @@ async function _updateQA( renderError("HTML")(error); } + await _runHook(onUpdateHook); + // wait for mathjax to ready await MathJax.startup.promise .then(() => { @@ -70,7 +72,6 @@ async function _updateQA( return MathJax.typesetPromise(qa.slice(0, 1)); }) .catch(renderError("MathJax")); - await _runHook(onUpdateHook); // and reveal when processing is done await qa.fadeTo(fadeTime, 1).promise();