slight fixes
This commit is contained in:
parent
85e2cceca5
commit
02d58bc64e
2 changed files with 2 additions and 1 deletions
|
@ -538,6 +538,7 @@ if(!localStorage.getItem("SWMode")){
|
|||
class SW{
|
||||
static worker:undefined|ServiceWorker;
|
||||
static setMode(mode:"false"|"offlineOnly"|"true"){
|
||||
localStorage.setItem("SWMode",mode);
|
||||
if(this.worker){
|
||||
this.worker.postMessage({data:mode,code:"setMode"});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue