Skip to content

Commit ffdd952

Browse files
authored
Merge pull request #852 from OpenSignLabs/resolve_stage
fix: cannot open pdf in safari < 17.4
2 parents 08d1e9a + 9594e94 commit ffdd952

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/OpenSign/src/App.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ const ManageSign = lazy(() => import("./pages/Managesign"));
3131
const GenerateToken = lazy(() => import("./pages/GenerateToken"));
3232
const Webhook = lazy(() => import("./pages/Webhook"));
3333

34-
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
35-
"pdfjs-dist/legacy/build/pdf.worker.min.mjs",
36-
import.meta.url
37-
).toString();
34+
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.mjs`;
3835
const AppLoader = () => {
3936
return (
4037
<div className="flex justify-center items-center h-[100vh]">

0 commit comments

Comments
 (0)