pwa compat

This commit is contained in:
cutls 2020-05-06 18:09:00 +09:00
parent 53010751ee
commit da011cd302

View File

@ -19,7 +19,7 @@ function verck(ver, jp) {
showVer = true showVer = true
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() { $(document).ready(function() {
if (localStorage.getItem('winstore')) { if (localStorage.getItem('winstore') && !pwa) {
$('#releasenote').modal('open') $('#releasenote').modal('open')
} }
verp = ver.replace('(', '') verp = ver.replace('(', '')
@ -69,7 +69,7 @@ function verck(ver, jp) {
} }
var platform = localStorage.getItem('platform') var platform = localStorage.getItem('platform')
console.log('Your platform:' + platform) console.log('Your platform:' + platform)
if (!localStorage.getItem('winstore')) { if (!localStorage.getItem('winstore') && !pwa) {
$('#start').css('display', 'flex') $('#start').css('display', 'flex')
} }
if ( if (
@ -354,6 +354,7 @@ function storeDialog(platform, ver) {
} }
localStorage.setItem('ver', ver) localStorage.setItem('ver', ver)
showVer = true showVer = true
if(pwa) return false
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() { $(document).ready(function() {
$('#releasenote').modal('open') $('#releasenote').modal('open')
@ -377,6 +378,7 @@ function storeDialog(platform, ver) {
showVer = true showVer = true
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;') console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() { $(document).ready(function() {
if(pwa) return false
$('#releasenote').modal('open') $('#releasenote').modal('open')
verp = ver.replace('(', '') verp = ver.replace('(', '')
verp = verp.replace('.', '-') verp = verp.replace('.', '-')