call Headlines.scrollhandler() on window resize

This commit is contained in:
Andrew Dolgov 2018-12-06 13:24:36 +03:00
parent 8b2286305e
commit b09a58a570
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ define(["dojo/_base/declare"], function (declare) {
App.setLoadingProgress(50);
document.onkeydown = (event) => { return App.hotkeyHandler(event) };
window.onresize = () => { Headlines.scrollHandler(); }
window.setInterval(() => { Headlines.catchupBatched() }, 10 * 1000);
if (!this.getActive()) {