mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #14423 from Snuffleupagus/rm-getViewerConfiguration-eventBus
Remove the `eventBus` parameter from `getViewerConfiguration`
This commit is contained in:
commit
8cf0a8c357
2 changed files with 3 additions and 9 deletions
11
web/app.js
11
web/app.js
|
@ -463,14 +463,9 @@ const PDFViewerApplication = {
|
|||
async _initializeViewerComponents() {
|
||||
const { appConfig, externalServices } = this;
|
||||
|
||||
let eventBus;
|
||||
if (appConfig.eventBus) {
|
||||
eventBus = appConfig.eventBus;
|
||||
} else if (externalServices.isInAutomation) {
|
||||
eventBus = new AutomationEventBus();
|
||||
} else {
|
||||
eventBus = new EventBus();
|
||||
}
|
||||
const eventBus = externalServices.isInAutomation
|
||||
? new AutomationEventBus()
|
||||
: new EventBus();
|
||||
this.eventBus = eventBus;
|
||||
|
||||
this.overlayManager = new OverlayManager();
|
||||
|
|
|
@ -77,7 +77,6 @@ function getViewerConfiguration() {
|
|||
appContainer: document.body,
|
||||
mainContainer: document.getElementById("viewerContainer"),
|
||||
viewerContainer: document.getElementById("viewer"),
|
||||
eventBus: null,
|
||||
toolbar: {
|
||||
container: document.getElementById("toolbarViewer"),
|
||||
numPages: document.getElementById("numPages"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue