From 190c8398ba73dd02aab789198ab008cbe27aceda Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 10 Feb 2017 10:42:26 +0100 Subject: [PATCH] [Chromium addon] Prevent errors that break the addon, caused by the `DEFAULT_URL` constant being replaced by a `defaultUrl` viewer configuration parameter (PR 8046 follow-up) I missed this during review, sorry about that! Fixes 8051. --- web/chromecom.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/chromecom.js b/web/chromecom.js index 31d567d5f..902052cb4 100644 --- a/web/chromecom.js +++ b/web/chromecom.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* globals chrome, DEFAULT_URL */ +/* globals chrome */ 'use strict'; @@ -351,7 +351,9 @@ var ChromeExternalServices = Object.create(DefaultExernalServices); ChromeExternalServices.initPassiveLoading = function (callbacks) { - ChromeCom.resolvePDFFile(DEFAULT_URL, function (url, length, originalURL) { + var appConfig = PDFViewerApplication.appConfig; + ChromeCom.resolvePDFFile(appConfig.defaultUrl, + function (url, length, originalURL) { callbacks.onOpenWithURL(url, length, originalURL); }); };