native pdf viewer with mozilla pdfjs

This commit is contained in:
spencerwooo
2021-12-29 02:13:17 +08:00
parent 0e8629e935
commit 53539e2cd9
8 changed files with 56 additions and 318 deletions
+1 -1
View File
@@ -31,10 +31,10 @@ import OfficePreview from './previews/OfficePreview'
import AudioPreview from './previews/AudioPreview'
import VideoPreview from './previews/VideoPreview'
import DownloadBtn from './DownloadBtn'
import PDFPreview from './previews/PDFEmbedPreview'
// Disabling SSR for some previews (image gallery view, and PDF view)
const ReactViewer = dynamic(() => import('react-viewer'), { ssr: false })
const PDFPreview = dynamic(() => import('./previews/PDFPreview'), { ssr: false })
const EPUBPreview = dynamic(() => import('./previews/EPUBPreview'), { ssr: false })
/**