mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Do not set opacity to 0 in reviewer
This commit is contained in:
parent
05771b7598
commit
d6393ba996
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue