Merge pull request #9542 from Rob--W/crx-url-9493-fixup

[CRX] Fix error that broke the Chrome extension
This commit is contained in:
Tim van der Meij 2018-03-08 22:57:19 +01:00 committed by GitHub
commit 58cda43b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@
/* globals chrome */
import { DefaultExternalServices, PDFViewerApplication } from './app';
import { AppOptions } from './app_options';
import { BasePreferences } from './preferences';
import { DownloadManager } from './download_manager';
import { GenericL10n } from './genericl10n';
@ -357,8 +358,9 @@ class ChromePreferences extends BasePreferences {
let ChromeExternalServices = Object.create(DefaultExternalServices);
ChromeExternalServices.initPassiveLoading = function(callbacks) {
let { appConfig, overlayManager, } = PDFViewerApplication;
ChromeCom.resolvePDFFile(appConfig.defaultUrl, overlayManager,
let { overlayManager, } = PDFViewerApplication;
// defaultUrl is set in viewer.js
ChromeCom.resolvePDFFile(AppOptions.get('defaultUrl'), overlayManager,
function(url, length, originalURL) {
callbacks.onOpenWithURL(url, length, originalURL);
});