From d6393ba9960eed1e6aca04751a948525645d0dad Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 12 Jul 2021 22:23:40 +0200 Subject: [PATCH] Do not set opacity to 0 in reviewer --- ts/reviewer/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ts/reviewer/index.ts b/ts/reviewer/index.ts index 5deec6525..abb96a661 100644 --- a/ts/reviewer/index.ts +++ b/ts/reviewer/index.ts @@ -86,19 +86,14 @@ async function _updateQA( const qa = document.getElementById("qa")!; - // hide current card - qa.style.opacity = "0"; - try { setInnerHTML(qa, convertMathJax(html)); } catch (error) { setInnerHTML(qa, renderError(error)); } + /* TODO redunancy */ await _runHook(onUpdateHook); - - // and reveal card when processing is done - qa.style.opacity = "1"; await _runHook(onShownHook); }