mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 17:32:41 +00:00
refactor: cleanup
This commit is contained in:
@@ -6,9 +6,9 @@ export const prerender = true
|
||||
export const trailingSlash = "always"
|
||||
|
||||
export const load = (async ({url, data, fetch}) => {
|
||||
const importFile = new URLSearchParams(url.search).get("import")
|
||||
const importFile = browser && new URLSearchParams(url.search).get("import")
|
||||
return {
|
||||
...data,
|
||||
importFile: browser && importFile ? await charaFileFromUriComponent(importFile, fetch) : undefined,
|
||||
importFile: importFile ? await charaFileFromUriComponent(importFile, fetch) : undefined,
|
||||
}
|
||||
}) satisfies LayoutLoad
|
||||
|
||||
Reference in New Issue
Block a user