Merge pull request #14423 from Snuffleupagus/rm-getViewerConfiguration-eventBus
Remove the `eventBus` parameter from `getViewerConfiguration`
This commit is contained in:
commit
8cf0a8c357
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…
x
Reference in New Issue
Block a user