Skip to content

Commit

Permalink
viewer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitpal committed Apr 27, 2024
1 parent ffbe103 commit 3c96706
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pdfjs/web/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<title>PDF.js viewer</title>

<!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="locale/locale.json">
<script src="../build/pdf.mjs" type="module"></script>
<link rel="resource" type="application/l10n" href="./locale/locale.json">
<script src="../pdf.mjs" type="module"></script>

<link rel="stylesheet" href="viewer.css">
<link rel="stylesheet" href="./viewer.css">

<script src="viewer.mjs" type="module"></script>
<script src="./viewer.mjs" type="module"></script>
</head>

<body tabindex="1">
Expand Down
4 changes: 2 additions & 2 deletions pdfjs/web/viewer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4578,7 +4578,7 @@ const defaultOptions = {
kind: OptionKind.WORKER
},
workerSrc: {
value: "../build/pdf.worker.mjs",
value: "../pdf.worker.mjs",
kind: OptionKind.WORKER
}
};
Expand All @@ -4588,7 +4588,7 @@ const defaultOptions = {
kind: OptionKind.VIEWER
};
defaultOptions.sandboxBundleSrc = {
value: "../build/pdf.sandbox.mjs",
value: "../pdf.sandbox.mjs",
kind: OptionKind.VIEWER
};
defaultOptions.viewerCssTheme = {
Expand Down

0 comments on commit 3c96706

Please sign in to comment.