Minor bugfixes for the standalone

This commit is contained in:
tobspr 2022-06-19 17:48:43 +02:00
parent 3fe2264c80
commit 75b49b3b1b
2 changed files with 8 additions and 2 deletions

View File

@ -120,7 +120,9 @@ export class HUDStandaloneAdvantages extends BaseHUDPart {
this.final = final;
this.root.app.inputMgr.makeSureAttachedAndOnTop(this.inputReciever);
if (this.final) {
if (this.root.time.now() < 120) {
this.title.innerText = "";
} else if (this.final) {
this.title.innerText = T.ingame.standaloneAdvantages.titleExpiredV2;
} else {
this.title.innerText = T.ingame.standaloneAdvantages.titleEnjoyingDemo;

View File

@ -63,4 +63,8 @@ function bootApp() {
app.boot();
}
bootApp();
if (G_IS_STANDALONE) {
window.addEventListener("load", bootApp);
} else {
bootApp();
}