change StartMenu

This commit is contained in:
cutls 2021-01-09 21:19:21 +09:00
parent 3ad4aca4a7
commit f12f9ed047
2 changed files with 5 additions and 4 deletions

View File

@ -73,9 +73,9 @@ 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') && !pwa) { //if (!localStorage.getItem('winstore') && !pwa) {
$('#start').css('display', 'flex') // $('#start').css('display', 'flex')
} //}
if ( if (
localStorage.getItem('winstore') == 'brewcask' || localStorage.getItem('winstore') == 'brewcask' ||
localStorage.getItem('winstore') == 'snapcraft' || localStorage.getItem('winstore') == 'snapcraft' ||

View File

@ -1453,7 +1453,6 @@ function announ(acct_id, tlid) {
setLog(start, this.status, this.response) setLog(start, this.status, this.response)
} }
if (json.length > 0) { if (json.length > 0) {
localStorage.setItem('announ_' + acct_id, json[0].id)
$('.notf-announ_' + acct_id).removeClass('hide') $('.notf-announ_' + acct_id).removeClass('hide')
var ct = 0 var ct = 0
for (var i = 0; i < json.length; i++) { for (var i = 0; i < json.length; i++) {
@ -1465,6 +1464,8 @@ function announ(acct_id, tlid) {
if (ct > 0) { if (ct > 0) {
$('.notf-announ_' + acct_id + '_ct').text(ct) $('.notf-announ_' + acct_id + '_ct').text(ct)
} }
localStorage.setItem('announ_' + acct_id, json[0].id)
} else { } else {
$('.notf-announ_' + acct_id).addClass('hide') $('.notf-announ_' + acct_id).addClass('hide')
} }