summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2018-12-03 05:03:55 +0000
committerGogs <[email protected]>2018-12-03 05:03:55 +0000
commit5bcf59739d18569823ae1a7f6323ba41f0d2774a (patch)
treedf542007e9fe12555aa0a9c548ca99afb6cb0d17
parentd3f31de0429c2679fb856d4e48fcf959e61dfcc8 (diff)
parentb83ed6c7c46257b5e1da3b99976d17aabcb657b1 (diff)
Merge branch 'const-PluginHost' of wn/tt-rss into js-objects
-rw-r--r--js/AppBase.js3
1 files changed, 2 insertions, 1 deletions
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();