This commit is contained in:
Hk-Gosuto 2024-02-19 16:27:36 +08:00
parent 309431a90b
commit 6dd0ad628e
2 changed files with 4 additions and 1 deletions

View File

@ -35,3 +35,4 @@ export const GET = handle;
export const OPTIONS = handle; export const OPTIONS = handle;
export const runtime = "edge"; export const runtime = "edge";
export const revalidate = 0;

View File

@ -465,7 +465,9 @@ export function ImagePreviewer(props: {
const isApp = getClientConfig()?.isApp; const isApp = getClientConfig()?.isApp;
try { try {
const blob = await toPng(dom); const blob = await toPng(dom, {
includeQueryParams: true,
});
if (!blob) return; if (!blob) return;
if (isMobile || (isApp && window.__TAURI__)) { if (isMobile || (isApp && window.__TAURI__)) {