Skip to content

Commit

Permalink
change StartMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Jan 9, 2021
1 parent 3ad4aca commit f12f9ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/js/common/version.js
Expand Up @@ -73,9 +73,9 @@ function verck(ver, jp) {
}
var platform = localStorage.getItem('platform')
console.log('Your platform:' + platform)
if (!localStorage.getItem('winstore') && !pwa) {
$('#start').css('display', 'flex')
}
//if (!localStorage.getItem('winstore') && !pwa) {
// $('#start').css('display', 'flex')
//}
if (
localStorage.getItem('winstore') == 'brewcask' ||
localStorage.getItem('winstore') == 'snapcraft' ||
Expand Down
3 changes: 2 additions & 1 deletion app/js/tl/tl.js
Expand Up @@ -1453,7 +1453,6 @@ function announ(acct_id, tlid) {
setLog(start, this.status, this.response)
}
if (json.length > 0) {
localStorage.setItem('announ_' + acct_id, json[0].id)
$('.notf-announ_' + acct_id).removeClass('hide')
var ct = 0
for (var i = 0; i < json.length; i++) {
Expand All @@ -1465,6 +1464,8 @@ function announ(acct_id, tlid) {
if (ct > 0) {
$('.notf-announ_' + acct_id + '_ct').text(ct)
}

localStorage.setItem('announ_' + acct_id, json[0].id)
} else {
$('.notf-announ_' + acct_id).addClass('hide')
}
Expand Down

0 comments on commit f12f9ed

Please sign in to comment.