Skip to content

Commit

Permalink
pdf format
Browse files Browse the repository at this point in the history
  • Loading branch information
jawndiego committed Feb 20, 2024
1 parent 91f6ea7 commit 400217b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/site/components/client/renderers/PDFViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import React, { useEffect, useRef, useState } from 'react'
import { Document, Page, pdfjs } from 'react-pdf'

pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;

pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`

interface PDFViewerProps {
file: string
Expand Down Expand Up @@ -76,4 +75,4 @@ const PDFViewer: React.FC<PDFViewerProps> = ({ file }) => {
)
}

export default PDFViewer
export default PDFViewer

0 comments on commit 400217b

Please sign in to comment.