diff options
author | Andrew Dolgov <[email protected]> | 2018-12-08 20:08:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-08 20:08:57 +0300 |
commit | a0d332326c8ff511b8dd05008a4c368fef623434 (patch) | |
tree | 080aab141b0319f41bdcbf79a76fbef2751fa256 /js/Headlines.js | |
parent | a400a8ffc1a5c8a5c4ecb2c0d153881f5b55d232 (diff) |
add PluginHost.HOOK_HEADLINE_RENDERED
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 0c8ce5abf..9a9576573 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -365,13 +365,13 @@ define(["dojo/_base/declare"], function (declare) { `; } - if (row != null) { - const tmp = document.createElement("div"); - tmp.innerHTML = row; - dojo.parser.parse(tmp); + const tmp = document.createElement("div"); + tmp.innerHTML = row; + dojo.parser.parse(tmp); - $("headlines-frame").appendChild(tmp.firstChild); - } + PluginHost.run(PluginHost.HOOK_HEADLINE_RENDERED, tmp.firstChild); + + $("headlines-frame").appendChild(tmp.firstChild); }, onLoaded: function (transport, offset) { const reply = App.handleRpcJson(transport); |