mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Fix: Hide iframe until loaded to prevent flash
This commit is contained in:
parent
7561bf8d6a
commit
fc8a2f9739
2 changed files with 2 additions and 0 deletions
|
|
@ -32,5 +32,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
iframe {
|
iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ export class ReviewerState {
|
||||||
iframe: HTMLIFrameElement | undefined = undefined;
|
iframe: HTMLIFrameElement | undefined = undefined;
|
||||||
|
|
||||||
onReady() {
|
onReady() {
|
||||||
|
this.iframe!.style.visibility = "visible";
|
||||||
this.showQuestion(null);
|
this.showQuestion(null);
|
||||||
addEventListener("message", this.onMessage.bind(this));
|
addEventListener("message", this.onMessage.bind(this));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue