This commit is contained in:
2025-06-27 01:10:58 +00:00
parent 8ba181d1fa
commit 7fda18edd7
5 changed files with 34 additions and 13 deletions

View File

@@ -468,6 +468,7 @@ export function PDFViewer({ file, compact, zoomFactor, justifyText }) {
title={`File: ${file.id}`}
className="w-full h-full border-0"
key={file.id}
sandbox="allow-same-origin"
allow="fullscreen"
onLoad={() => {
if (iframeRef.current?.contentDocument?.body) {