From 7801ce67ace77f5de98ddc38d7b0b45c68faeb6b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Dec 2024 15:57:40 -0800 Subject: cache qrs --- src/routes/(app)/invoice/[id]/+layout.server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/routes/(app)/invoice') diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts index f89e0de8..590e5d4d 100644 --- a/src/routes/(app)/invoice/[id]/+layout.server.ts +++ b/src/routes/(app)/invoice/[id]/+layout.server.ts @@ -1,6 +1,5 @@ import { get } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; -import * as Qr from "qrcode-base64"; export async function load({ cookies, depends, params, url, parent }) { depends("app:invoice"); @@ -35,7 +34,6 @@ export async function load({ cookies, depends, params, url, parent }) { } } - const src = Qr.drawImg(invoice?.text || "", { size: 500 }); const theme = cookies.get("theme") || "light"; - return { id, invoice, subject, src, user, token, theme }; + return { id, invoice, subject, user, token, theme }; } -- cgit v1.2.3