Skip to content

Commit

Permalink
Revert "deps: bump pdfjs url to 4.5.136"
Browse files Browse the repository at this point in the history
This reverts commit a693637.
  • Loading branch information
ImJustChew committed Jul 31, 2024
1 parent 1e49727 commit 6c92c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CourseDetails/PDFViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ScrollArea } from '@radix-ui/react-scroll-area';
import '@react-pdf-viewer/core/lib/styles/index.css';

const PDFViewer = ({ file }: { file: string }) => {
return <Worker workerUrl="https://unpkg.com/pdfjs-dist@4.5.136/build/pdf.worker.min.js">
return <Worker workerUrl="https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js">
<ScrollArea className='max-h-screen overflow-y-auto'>
<Viewer fileUrl={file} />
</ScrollArea>
Expand Down

0 comments on commit 6c92c2f

Please sign in to comment.