Merge pull request #15997 from Snuffleupagus/loadingIcon-INITIAL-remove

Remove the `loadingIcon` in all cases when resetting the page (PR 15992 follow-up)
This commit is contained in:
Jonas Jenwald 2023-02-02 22:20:53 +01:00 committed by GitHub
commit 39bdd09447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,6 @@ class PDFPageView {
}
switch (state) {
case RenderingStates.INITIAL:
case RenderingStates.PAUSED:
this.div.classList.remove("loading");
break;
@ -260,6 +259,7 @@ class PDFPageView {
this.#loadingId = null;
}, 0);
break;
case RenderingStates.INITIAL:
case RenderingStates.FINISHED:
this.div.classList.remove("loadingIcon", "loading");
break;