@@ -16,6 +16,7 @@ import Button from 'button';
16
16
import * as side from 'sidebar' ;
17
17
18
18
import { storage , STORAGE_MODE as mode } from 'storage' ;
19
+ import local from 'local' ;
19
20
import * as ss from 'stylesheet' ;
20
21
import * as conf from 'config' ;
21
22
import * as ver from 'version' ;
@@ -215,6 +216,11 @@ function vernotify( first ) {
215
216
patch == "5005" && welcomeRender ( false , patch ) ;
216
217
history . pushState ( "" , "" , "/options/options.html" ) ;
217
218
}
219
+ // silent update
220
+ if ( local . Patch ( "get" ) ) {
221
+ new Notify ( ) . Render ( "简悦 版本提示" , ver . SilentUpdate ( ) ) ;
222
+ local . Patch ( "remove" ) ;
223
+ }
218
224
}
219
225
220
226
/**
@@ -381,7 +387,7 @@ function noticeRender() {
381
387
if ( $ . isEmptyObject ( result ) ) {
382
388
storage . notice . latest = 0 ;
383
389
}
384
- $ . get ( storage . notice_service . latest , result => {
390
+ $ . get ( storage . notice_service . latest + "?" + Math . round ( + new Date ( ) ) , result => {
385
391
console . log ( "notice latest id " , result )
386
392
if ( storage . notice . latest == 0 ) {
387
393
$ ( "body" ) . append ( tmpl ) ;
0 commit comments