mirror of
https://github.com/LukeHagar/ui-development-kit.git
synced 2025-12-09 04:21:55 +00:00
21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
import './exports-DuWZopOC.js';
|
|
|
|
function get(key, parse = JSON.parse) {
|
|
try {
|
|
return parse(sessionStorage[key]);
|
|
} catch {
|
|
}
|
|
}
|
|
const SNAPSHOT_KEY = "sveltekit:snapshot";
|
|
const SCROLL_KEY = "sveltekit:scroll";
|
|
get(SCROLL_KEY) ?? {};
|
|
get(SNAPSHOT_KEY) ?? {};
|
|
function goto(url, opts = {}) {
|
|
{
|
|
throw new Error("Cannot call goto(...) on the server");
|
|
}
|
|
}
|
|
|
|
export { goto as g };
|
|
//# sourceMappingURL=client-CQ5E_ugM.js.map
|