mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
12 lines
290 B
TypeScript
12 lines
290 B
TypeScript
import { error } from "@sveltejs/kit";
|
|
import { keyExportState } from "$lib/utils/gotoStateful";
|
|
import type { PageLoad } from "./$types";
|
|
|
|
export const load: PageLoad = async () => {
|
|
const state = keyExportState.get();
|
|
if (!state) {
|
|
error(403, "Forbidden");
|
|
}
|
|
return state;
|
|
};
|