mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Fix: Further delay showing iframe
This commit is contained in:
parent
e263fa00b8
commit
bc675247ba
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,6 @@ export class ReviewerState {
|
||||||
iframe: HTMLIFrameElement | undefined = undefined;
|
iframe: HTMLIFrameElement | undefined = undefined;
|
||||||
|
|
||||||
async onReady() {
|
async onReady() {
|
||||||
this.iframe!.style.visibility = "visible";
|
|
||||||
const { json } = await getConfigJson({ val: "reviewerStorage" });
|
const { json } = await getConfigJson({ val: "reviewerStorage" });
|
||||||
this.sendInnerRequest({ type: "setstorage", json_buffer: json });
|
this.sendInnerRequest({ type: "setstorage", json_buffer: json });
|
||||||
this.showQuestion(null);
|
this.showQuestion(null);
|
||||||
|
|
@ -305,6 +304,7 @@ export class ReviewerState {
|
||||||
|
|
||||||
const question = resp.nextCard?.front || "";
|
const question = resp.nextCard?.front || "";
|
||||||
this.updateHtml(question, resp?.nextCard?.css, resp?.nextCard?.bodyClass);
|
this.updateHtml(question, resp?.nextCard?.css, resp?.nextCard?.bodyClass);
|
||||||
|
this.iframe!.style.visibility = "visible";
|
||||||
if (this._cardData?.autoplay) {
|
if (this._cardData?.autoplay) {
|
||||||
playAvtags({ tags: this._cardData!.questionAvTags });
|
playAvtags({ tags: this._cardData!.questionAvTags });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue