mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:05:55 +00:00
Fix reference to PluginHost.
A `const` doesn't create a property on `window`.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user