From 8b9ce418f3fc2b3ca225b2f5a1f360a7a0a12b17 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sun, 24 May 2020 17:53:13 +0200 Subject: [PATCH] Fix update dialog being always shown --- src/js/changelog.js | 2 +- src/js/states/main_menu.js | 2 +- src/js/states/preload.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/changelog.js b/src/js/changelog.js index a56306ec..1b5ca2ef 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -3,7 +3,7 @@ export const CHANGELOG = [ version: "1.0.3", date: "24.05.2020", entries: [ - "Balancing Reduced the amount of shapes required for the first 5 levels, to make it easier to get into the game.", + "Balancing Reduced the amount of shapes required for the first 5 levels to make it easier to get into the game.", ], }, { diff --git a/src/js/states/main_menu.js b/src/js/states/main_menu.js index fded521b..9dd18909 100644 --- a/src/js/states/main_menu.js +++ b/src/js/states/main_menu.js @@ -97,7 +97,7 @@ export class MainMenuState extends GameState { G_IS_BROWSER && this.app.platformWrapper instanceof PlatformWrapperImplBrowser && this.app.platformWrapper.embedProvider.iogLink - ? `More .io games` + ? `.io games` : "" } diff --git a/src/js/states/preload.js b/src/js/states/preload.js index c12972e0..43c84eb0 100644 --- a/src/js/states/preload.js +++ b/src/js/states/preload.js @@ -186,7 +186,8 @@ export class PreloadState extends GameState { return G_BUILD_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; }) .then(version => {