TagSpaces is an offline, open source, document manager with tagging support
Fix crash on opening S3 folder in Safari (#1759)
Stanimirac9ec332c61f
diff --git a/app/components/FileView.tsx b/app/components/FileView.tsxindex 93d9ef72a..84217848a 100644--- a/app/components/FileView.tsx+++ b/app/components/FileView.tsx@@ -121,19 +121,21 @@ function FileView(props: Props) {<span>ESC</span></div>)}- <iframe- ref={fileViewer}- style={{- width: '100%',- zIndex: 3,- border: 0- }}- src={fileOpenerURL}- allowFullScreen- sandbox="allow-same-origin allow-scripts allow-modals"- title={i18n.t('core:fileViewer')}- id="FileViewer"- />+ {openedFile.isFile && (+ <iframe+ ref={fileViewer}+ style={{+ width: '100%',+ zIndex: 3,+ border: 0+ }}+ src={fileOpenerURL}+ allowFullScreen+ sandbox="allow-same-origin allow-scripts allow-modals"+ title={i18n.t('core:fileViewer')}+ id="FileViewer"+ />+ )}</div>);}