diff --git a/README.md b/README.md index b2af278..825abf3 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ 更多功能还在制作之中... ## 在线体验 -[在线预览](https://tjy-gitnub.github.io/win12/start.html) +[在线预览](https://tjy-gitnub.github.io/win12/desktop.html) 有点慢,稍等一下 ## 安装和使用 diff --git a/desktop.js b/desktop.js index 4325737..0e6b3e5 100644 --- a/desktop.js +++ b/desktop.js @@ -369,9 +369,6 @@ navigator.serviceWorker.register('sw.js',{scope:'./'}); navigator.serviceWorker.addEventListener('message', function (e) { if(e.data=='update'){ - $('.msg.update>.main>.tit').html(' ' + $('#win-about>.cnt.update>div>details:first-child>summary').text()); - $('.msg.update>.main>.cont').html($('#win-about>.cnt.update>div>details:first-child>p').html()); - $('#loadbackupdate').css('display','block'); updated=true; if(aftload){ $('.msg.update').addClass('show'); @@ -383,5 +380,8 @@ navigator.serviceWorker.addEventListener('message', function (e) { // v3更新 清除cookie if(document.cookie!=''){ document.cookie='version=3.0.0;expires=Thu, 01 Jan 1970 00:00:00 UTC;'; + $('.msg.update>.main>.tit').html(' ' + $('#win-about>.cnt.update>div>details:first-child>summary').text()); + $('.msg.update>.main>.cont').html($('#win-about>.cnt.update>div>details:first-child>p').html()); + $('#loadbackupdate').css('display','block'); updated=true; } \ No newline at end of file