Add back opacity change

This commit is contained in:
Henrik Giesel 2021-07-16 17:26:04 +02:00
parent 272f2f7d1a
commit f52df75bc2

View File

@ -92,6 +92,8 @@ async function _updateQA(
const qa = document.getElementById("qa")!; const qa = document.getElementById("qa")!;
qa.style.opacity = "0";
try { try {
setInnerHTML(qa, html); setInnerHTML(qa, html);
} catch (error) { } catch (error) {
@ -110,6 +112,8 @@ async function _updateQA(
}) })
.catch(renderError("MathJax")); .catch(renderError("MathJax"));
qa.style.opacity = "1";
await _runHook(onShownHook); await _runHook(onShownHook);
} }