@@ -16,6 +16,7 @@ import Button from 'button';
1616import * as side from 'sidebar' ;
1717
1818import { storage , STORAGE_MODE as mode } from 'storage' ;
19+ import local from 'local' ;
1920import * as ss from 'stylesheet' ;
2021import * as conf from 'config' ;
2122import * as ver from 'version' ;
@@ -215,6 +216,11 @@ function vernotify( first ) {
215216 patch == "5005" && welcomeRender ( false , patch ) ;
216217 history . pushState ( "" , "" , "/options/options.html" ) ;
217218 }
219+ // silent update
220+ if ( local . Patch ( "get" ) ) {
221+ new Notify ( ) . Render ( "简悦 版本提示" , ver . SilentUpdate ( ) ) ;
222+ local . Patch ( "remove" ) ;
223+ }
218224}
219225
220226/**
@@ -381,7 +387,7 @@ function noticeRender() {
381387 if ( $ . isEmptyObject ( result ) ) {
382388 storage . notice . latest = 0 ;
383389 }
384- $ . get ( storage . notice_service . latest , result => {
390+ $ . get ( storage . notice_service . latest + "?" + Math . round ( + new Date ( ) ) , result => {
385391 console . log ( "notice latest id " , result )
386392 if ( storage . notice . latest == 0 ) {
387393 $ ( "body" ) . append ( tmpl ) ;
0 commit comments