Do not set opacity to 0 in reviewer
This commit is contained in:
parent
05771b7598
commit
d6393ba996
@ -86,19 +86,14 @@ async function _updateQA(
|
|||||||
|
|
||||||
const qa = document.getElementById("qa")!;
|
const qa = document.getElementById("qa")!;
|
||||||
|
|
||||||
// hide current card
|
|
||||||
qa.style.opacity = "0";
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
setInnerHTML(qa, convertMathJax(html));
|
setInnerHTML(qa, convertMathJax(html));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setInnerHTML(qa, renderError(error));
|
setInnerHTML(qa, renderError(error));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO redunancy */
|
||||||
await _runHook(onUpdateHook);
|
await _runHook(onUpdateHook);
|
||||||
|
|
||||||
// and reveal card when processing is done
|
|
||||||
qa.style.opacity = "1";
|
|
||||||
await _runHook(onShownHook);
|
await _runHook(onShownHook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user