Skip to content

Commit b1ff3c3

Browse files
committed
wait for i18n to finish
1 parent aa834da commit b1ff3c3

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

app/elements/util/splash-screen/splash-screen.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ namespace SplashScreenElement {
9090
const progress = Math.round((registered / this._settings.max) * 100) / 100;
9191
this.setProgress(progress);
9292

93-
if (registered >= this._settings.max) {
94-
this.async(() => {
95-
this.finish();
96-
resolve(null);
93+
if (registered >= this._settings.max && !this.finished) {
94+
this.async(async () => {
95+
await window.__.ready;
96+
this.async(() => {
97+
this.finish();
98+
resolve(null);
99+
}, 250);
97100
}, 500);
98101
}
99102
}

0 commit comments

Comments
 (0)