mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-09 03:22:49 +00:00
new navigation flow
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import {pwaInfo} from "virtual:pwa-info"
|
||||
import type {LayoutServerData} from "./$types"
|
||||
import type {RegisterSWOptions} from "vite-plugin-pwa/types"
|
||||
import {initLocalStorage} from "$lib/serial/storage"
|
||||
|
||||
export let data: LayoutServerData
|
||||
|
||||
@@ -20,6 +21,7 @@
|
||||
])
|
||||
const dark = true // window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
applyTheme(theme, {target: document.body, dark})
|
||||
initLocalStorage()
|
||||
|
||||
if (pwaInfo) {
|
||||
// noinspection TypeScriptCheckImport
|
||||
|
||||
Reference in New Issue
Block a user