Skip to content

Commit

Permalink
fix: #194
Browse files Browse the repository at this point in the history
  • Loading branch information
Hk-Gosuto committed Feb 19, 2024
1 parent 309431a commit 0eb7187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/api/cors/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ export const GET = handle;
export const OPTIONS = handle;

export const runtime = "edge";
export const revalidate = 0;
4 changes: 3 additions & 1 deletion app/components/exporter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ export function ImagePreviewer(props: {
const isApp = getClientConfig()?.isApp;

try {
const blob = await toPng(dom);
const blob = await toPng(dom, {
includeQueryParams: true,
});
if (!blob) return;

if (isMobile || (isApp && window.__TAURI__)) {
Expand Down

0 comments on commit 0eb7187

Please sign in to comment.