Skip to content

Commit 4ba7ffb

Browse files
authored
Merge pull request #846 from OpenSignLabs/revert-845-main
Revert "Safari issue patch "
2 parents 084aa69 + 0d9a0b8 commit 4ba7ffb

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

apps/OpenSign/src/App.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ const Opensigndrive = lazy(() => import("./pages/Opensigndrive"));
3030
const ManageSign = lazy(() => import("./pages/Managesign"));
3131
const GenerateToken = lazy(() => import("./pages/GenerateToken"));
3232
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();
33+
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.min.mjs`;
3834
const AppLoader = () => {
3935
return (
4036
<div className="flex justify-center items-center h-[100vh]">

apps/OpenSign/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
import DragElement from "./components/pdf/DragElement";
1717
import TagManager from "react-gtm-module";
1818
import Parse from "parse";
19-
import './polyfills'
2019
const appId = process.env.REACT_APP_APPID
2120
? process.env.REACT_APP_APPID
2221
: "opensign";

apps/OpenSign/src/polyfills.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)