We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08d1e9a + 9594e94 commit ffdd952Copy full SHA for ffdd952
apps/OpenSign/src/App.js
@@ -31,10 +31,7 @@ const ManageSign = lazy(() => import("./pages/Managesign"));
31
const GenerateToken = lazy(() => import("./pages/GenerateToken"));
32
const Webhook = lazy(() => import("./pages/Webhook"));
33
34
-pdfjs.GlobalWorkerOptions.workerSrc = new URL(
35
- "pdfjs-dist/legacy/build/pdf.worker.min.mjs",
36
- import.meta.url
37
-).toString();
+pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.mjs`;
38
const AppLoader = () => {
39
return (
40
<div className="flex justify-center items-center h-[100vh]">
0 commit comments