Update serviceWorker.js typo in js
This commit is contained in:
parent
ce2f845bc7
commit
56561a9718
1 changed files with 3 additions and 2 deletions
|
@ -85,12 +85,13 @@ async function serviceWorkerRegister() {
|
|||
return;
|
||||
}
|
||||
// Register the service worker and reload the page to transfer control to the serviceworker.
|
||||
if ("serviceWorker" in navigator)
|
||||
if ("serviceWorker" in navigator){
|
||||
// show in gui were fetching/busy doing disk read/s...
|
||||
document.getElementById("loading").style.display = "inline";
|
||||
await doRegister();
|
||||
else
|
||||
}else{
|
||||
console.log("Service worker is not supported in this browser");
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof window === 'undefined') // If the script is running in a Service Worker context
|
||||
|
|
Loading…
Add table
Reference in a new issue