Minor bugfixes for the standalone

pull/1448/head
tobspr 2 years ago
parent 3fe2264c80
commit 75b49b3b1b

@ -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;

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

Loading…
Cancel
Save