feat(web-console): rebuild intelligent cockpit sync interface
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
try {
|
||||
const registration = await navigator.serviceWorker.register("/service-worker.js", {
|
||||
scope: "/",
|
||||
updateViaCache: "none",
|
||||
});
|
||||
await registration.update();
|
||||
if (registration.waiting) showUpdate(registration);
|
||||
registration.addEventListener("updatefound", () => {
|
||||
const worker = registration.installing;
|
||||
|
||||
Reference in New Issue
Block a user