Fix reference to `PluginHost`.

A `const` doesn't create a property on `window`.
master
wn_ 6 years ago
parent 5ead558e43
commit b83ed6c7c4

@ -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();

Loading…
Cancel
Save