mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-07 02:22:52 +00:00
fix: broken site
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import {redirect} from "@sveltejs/kit"
|
||||
import type {PageLoad} from "./$types"
|
||||
|
||||
export const load = (async ({url}) => {
|
||||
const newUrl = new URL(url)
|
||||
newUrl.pathname = "/config/"
|
||||
throw redirect(302, newUrl)
|
||||
export const load = (() => {
|
||||
throw redirect(302, "/config")
|
||||
}) satisfies PageLoad
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import {redirect} from "@sveltejs/kit"
|
||||
import type {PageLoad} from "./$types"
|
||||
|
||||
export const load = (({url}) => {
|
||||
const newUrl = new URL(url)
|
||||
newUrl.pathname = "/config/layout/"
|
||||
throw redirect(302, newUrl)
|
||||
export const load = (() => {
|
||||
throw redirect(302, "/config/layout/")
|
||||
}) satisfies PageLoad
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import {layout} from "$lib/undo-redo"
|
||||
|
||||
async function shareLayout(event: Event) {
|
||||
const url = new URL(window.location.origin)
|
||||
const url = new URL(window.location.href)
|
||||
url.searchParams.set(
|
||||
"import",
|
||||
await charaFileToUriComponent({
|
||||
|
||||
Reference in New Issue
Block a user