Feature: offline basemaps: first working version (without ability to install basemaps from the UI)

This commit is contained in:
Pieter Vander Vennet 2025-07-30 00:21:30 +02:00
parent 4c858fbe7e
commit 2cd0b11448
13 changed files with 494 additions and 178 deletions

View file

@ -5,7 +5,7 @@ window.addEventListener("load", async () => {
return
}
try {
await navigator.serviceWorker.register("/service-worker.js")
await navigator.serviceWorker.register("/service-worker.js", { type: "module" })
console.log("Service worker registration successful")
} catch (err) {
console.error("Service worker registration failed", err)