mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
hook, store 리네이밍
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
import { error } from "@sveltejs/kit";
|
||||
import { get } from "svelte/store";
|
||||
import { keyExportState } from "$lib/hooks/goto";
|
||||
import { keyExportState } from "$lib/hooks/gotoStateful";
|
||||
import type { PageLoad } from "./$types";
|
||||
|
||||
export const load: PageLoad = async () => {
|
||||
const state = get(keyExportState);
|
||||
const state = keyExportState.get();
|
||||
if (!state) {
|
||||
error(403, "Forbidden");
|
||||
}
|
||||
|
||||
keyExportState.set(null);
|
||||
return state;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user