Fix update dialog being always shown

This commit is contained in:
tobspr 2020-05-24 17:53:13 +02:00
parent 9033c9eb67
commit 8b9ce418f3
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ export const CHANGELOG = [
version: "1.0.3", version: "1.0.3",
date: "24.05.2020", date: "24.05.2020",
entries: [ entries: [
"<strong>Balancing</strong> Reduced the amount of shapes required for the first 5 levels, to make it easier to get into the game.", "<strong>Balancing</strong> Reduced the amount of shapes required for the first 5 levels to make it easier to get into the game.",
], ],
}, },
{ {

View File

@ -97,7 +97,7 @@ export class MainMenuState extends GameState {
G_IS_BROWSER && G_IS_BROWSER &&
this.app.platformWrapper instanceof PlatformWrapperImplBrowser && this.app.platformWrapper instanceof PlatformWrapperImplBrowser &&
this.app.platformWrapper.embedProvider.iogLink this.app.platformWrapper.embedProvider.iogLink
? `<a class="iogLink" target="_blank" href="https://iogames.space">More .io games</a>` ? `<a class="iogLink" target="_blank" href="https://iogames.space">.io games</a>`
: "" : ""
} }

View File

@ -186,7 +186,8 @@ export class PreloadState extends GameState {
return G_BUILD_VERSION; return G_BUILD_VERSION;
}) })
.then(version => { .then(version => {
this.app.storage.writeFileAsync("lastversion.bin", version); logger.log("Last version:", version, "App version:", G_BUILD_VERSION);
this.app.storage.writeFileAsync("lastversion.bin", G_BUILD_VERSION);
return version; return version;
}) })
.then(version => { .then(version => {