Skip to content

Commit 4f990b7

Browse files
fix(web): classify PDFs like other browser previews
Co-Authored-By: Claude Code <[email protected]>
1 parent 779ad56 commit 4f990b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/files/FilePreviewPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function WorkspaceImagePreview(props: {
197197
);
198198
}
199199

200-
const isPdfPreviewFile = (path: string): boolean => /\.pdf$/i.test(path);
200+
const isPdfPreviewFile = (path: string): boolean => /\.pdf$/i.test(path.split(/[?#]/, 1)[0] ?? "");
201201

202202
/**
203203
* Renders an HTML or PDF file in place from its signed asset URL. HTML runs in

0 commit comments

Comments
 (0)