diff options
| author | Adam Soltys <[email protected]> | 2025-09-26 22:21:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-26 22:21:03 -0700 |
| commit | cb10194d0c7ec20f22b46c97cf0259e091a34d30 (patch) | |
| tree | 4b03100463ee066dab5c23f6338cc9e00f26580a /src/routes/(app)/pos/+page.server.ts | |
| parent | 0ce3367bedf79c7b93009489963de7609336a965 (diff) | |
| download | coinos-ui-cb10194d0c7ec20f22b46c97cf0259e091a34d30.tar.gz coinos-ui-cb10194d0c7ec20f22b46c97cf0259e091a34d30.zip | |
update flash page
Diffstat (limited to 'src/routes/(app)/pos/+page.server.ts')
| -rw-r--r-- | src/routes/(app)/pos/+page.server.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/(app)/pos/+page.server.ts b/src/routes/(app)/pos/+page.server.ts index 59f2d923..1df1bb33 100644 --- a/src/routes/(app)/pos/+page.server.ts +++ b/src/routes/(app)/pos/+page.server.ts @@ -3,7 +3,12 @@ import { auth, fd, get } from "$lib/utils"; import { hex } from "@scure/base"; export async function load({ cookies }) { - const token = await get("/ro", auth(cookies)); + let token; + + try { + token = await get("/ro", auth(cookies)); + } catch (e) {} + return { token }; } |
