From da011cd302e5e8a81f1e8a08095f819b2dc710fe Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 6 May 2020 18:09:00 +0900 Subject: [PATCH] pwa compat --- app/js/common/version.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/js/common/version.js b/app/js/common/version.js index f566575e..e2e7fdb6 100644 --- a/app/js/common/version.js +++ b/app/js/common/version.js @@ -19,7 +19,7 @@ function verck(ver, jp) { showVer = true console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') $(document).ready(function() { - if (localStorage.getItem('winstore')) { + if (localStorage.getItem('winstore') && !pwa) { $('#releasenote').modal('open') } verp = ver.replace('(', '') @@ -69,7 +69,7 @@ function verck(ver, jp) { } var platform = localStorage.getItem('platform') console.log('Your platform:' + platform) - if (!localStorage.getItem('winstore')) { + if (!localStorage.getItem('winstore') && !pwa) { $('#start').css('display', 'flex') } if ( @@ -354,6 +354,7 @@ function storeDialog(platform, ver) { } localStorage.setItem('ver', ver) showVer = true + if(pwa) return false console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') $(document).ready(function() { $('#releasenote').modal('open') @@ -377,6 +378,7 @@ function storeDialog(platform, ver) { showVer = true console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') $(document).ready(function() { + if(pwa) return false $('#releasenote').modal('open') verp = ver.replace('(', '') verp = verp.replace('.', '-')