slight fixes

This commit is contained in:
MathMan05 2024-10-30 15:33:56 -05:00
parent 85e2cceca5
commit 02d58bc64e
2 changed files with 2 additions and 1 deletions

View file

@ -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"});
}