update localforage url

This commit is contained in:
2025-01-18 09:24:29 +00:00
parent b8033138ce
commit e5f175c10a
+1 -1
View File
@@ -1,5 +1,5 @@
let localStorage=globalThis.localStorage let localStorage=globalThis.localStorage
import('https://cdn.jsdelivr.net/npm/localforage@1/dist/localforage.min.js') import('https://cdn.jsdelivr.net/npm/localforage@1/+esm')
.then(module=>module.default) .then(module=>module.default)
.then(localforage=>{localStorage=localforage.createInstance({name:import.meta.url})}) .then(localforage=>{localStorage=localforage.createInstance({name:import.meta.url})})
.catch(e=>console.warn('localforage failed, using localStorage',e)) .catch(e=>console.warn('localforage failed, using localStorage',e))