mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Use Cache API instead of LocalStorage (#128)
* Use Cache API instead of LocalStorage * Remove old cached data
This commit is contained in:
@@ -67,8 +67,9 @@ export const TreePanel = (view: View, model: DataModel) => {
|
||||
})}">${r}</div>`).join('')
|
||||
}
|
||||
const presetControl = view.register(el => {
|
||||
App.version.watchRun(v => {
|
||||
const enabled = (m?.path && checkVersion(v, '1.16'))
|
||||
App.schemasLoaded.watch(v => {
|
||||
if (!v) return
|
||||
const enabled = (m?.path && checkVersion(App.version.get(), '1.16'))
|
||||
el.classList.toggle('disabled', !enabled || (App.collections.get()?.get(registry) ?? []).length === 0)
|
||||
if (enabled) {
|
||||
view.mount(presetList, getPresets(), false)
|
||||
|
||||
Reference in New Issue
Block a user