PWA: modal platform
This commit is contained in:
parent
ba01510c88
commit
c24ef878c4
|
@ -329,7 +329,10 @@ function storeDialog(platform, ver) {
|
||||||
var mes = lang.lang_version_platform_linux
|
var mes = lang.lang_version_platform_linux
|
||||||
} else if (platform == 'darwin') {
|
} else if (platform == 'darwin') {
|
||||||
var mes = lang.lang_version_platform_mac
|
var mes = lang.lang_version_platform_mac
|
||||||
|
} else {
|
||||||
|
var mes = false
|
||||||
}
|
}
|
||||||
|
if (mes) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Select your platform',
|
title: 'Select your platform',
|
||||||
text: mes,
|
text: mes,
|
||||||
|
@ -366,6 +369,28 @@ function storeDialog(platform, ver) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('ver', ver)
|
||||||
|
show = true
|
||||||
|
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#releasenote').modal('open')
|
||||||
|
verp = ver.replace('(', '')
|
||||||
|
verp = verp.replace('.', '-')
|
||||||
|
verp = verp.replace('.', '-')
|
||||||
|
verp = verp.replace('[', '-')
|
||||||
|
verp = verp.replace(']', '')
|
||||||
|
verp = verp.replace(')', '')
|
||||||
|
verp = verp.replace(' ', '_')
|
||||||
|
console.log('%c ' + verp, 'color: red;font-size:200%;')
|
||||||
|
if (lang.language == 'ja') {
|
||||||
|
$('#release-' + verp).show()
|
||||||
|
} else {
|
||||||
|
$('#release-en').show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
function closeStart() {
|
function closeStart() {
|
||||||
$('#start').css('display', 'none')
|
$('#start').css('display', 'none')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user