From b83ed6c7c46257b5e1da3b99976d17aabcb657b1 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 2 Dec 2018 15:02:35 -0600 Subject: [PATCH] Fix reference to `PluginHost`. A `const` doesn't create a property on `window`. --- js/AppBase.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/AppBase.js b/js/AppBase.js index 1721f0905..ce040e8c9 100644 --- a/js/AppBase.js +++ b/js/AppBase.js @@ -346,7 +346,8 @@ define(["dojo/_base/declare"], function (declare) { } // PluginHost might not be available on non-index pages - window.PluginHost && PluginHost.run(PluginHost.HOOK_PARAMS_LOADED, App._initParams); + if (typeof PluginHost !== 'undefined') + PluginHost.run(PluginHost.HOOK_PARAMS_LOADED, App._initParams); } this.initSecondStage();