Skip to content

Commit

Permalink
fix: make multiple view work
Browse files Browse the repository at this point in the history
  • Loading branch information
Priestch committed Mar 25, 2024
1 parent 976397d commit a3621f3
Show file tree
Hide file tree
Showing 2 changed files with 478 additions and 45 deletions.
4 changes: 2 additions & 2 deletions packages/document-viewer/src/app_manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PDFViewerApplication } from "./app.js";
import { AppOptions } from "../pdf.js/web/app_options";
import { AppOptions } from "./application_options.js";
import { injectLocaleResource } from "./utils";
import getViewerTemplate from "./viewer_template";

Expand Down Expand Up @@ -184,7 +184,7 @@ function createViewerApp(options) {
} = options;
const workerSrc = `${resourcePath}/build/pdf.worker.js`;

const viewerOptions = AppOptions;
const viewerOptions = new AppOptions();
Object.keys(appOptions).forEach(function (key) {
viewerOptions.set(key, appOptions[key]);
});
Expand Down
Loading

0 comments on commit a3621f3

Please sign in to comment.