Commit df00fef8 authored by Medicean's avatar Medicean

(App:Update) fix check update err

parent 30634f57
...@@ -640,7 +640,7 @@ antSword['menubar'].reg('check-update', () => { ...@@ -640,7 +640,7 @@ antSword['menubar'].reg('check-update', () => {
.send('check-loader-update'); .send('check-loader-update');
}); });
if (new Date() - new Date(antSword['storage']('lastautocheck', false, "0")) >= 86400000) { if (new Date() - new Date(parseInt(antSword['storage']('lastautocheck', false, "0"))) >= 86400000) {
// 检查更新 // 检查更新
antSword['storage']('lastautocheck', new Date().getTime()); antSword['storage']('lastautocheck', new Date().getTime());
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment