Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Aug 29, 2024
1 parent ea0188e commit c3c9e9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/pdfPreviewPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { IDefaultFileBrowser } from "@jupyterlab/filebrowser";
import { ReactWidget, UseSignal } from "@jupyterlab/ui-components";
import { PDF_MIMETYPE, PDF_PREVIEW_WIDTH, PDF_PREVIEW_BORDER_WIDTH } from "@/constants";
import { calcPdfPreviewPosition } from "@/utils";
// eslint-disable-next-line import/no-unresolved
import pdfjsWorkerUrl from "pdfjs-dist/build/pdf.worker.js?file-url";
import pdfjsWorkerUrl from "pdfjs-dist/build/pdf.worker.mjs?file-url";

// Set the URL for the PDF.js worker
pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorkerUrl;
Expand Down

0 comments on commit c3c9e9c

Please sign in to comment.