From e2db8b23a4a641e082903d719001ac4a2998730c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 23 Aug 2017 00:04:55 +0300 Subject: [PATCH] Add IntersectionObserver polyfill --- client/js/render.js | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/client/js/render.js b/client/js/render.js index 209cebbc..748ef771 100644 --- a/client/js/render.js +++ b/client/js/render.js @@ -12,6 +12,8 @@ const condensed = require("./condensed"); const chat = $("#chat"); const sidebar = $("#sidebar"); +require("intersection-observer"); + const historyObserver = window.IntersectionObserver ? new window.IntersectionObserver(loadMoreHistory, { root: chat.get(0) diff --git a/package.json b/package.json index 9d106e33..de7fc68a 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "fuzzy": "0.1.3", "handlebars": "4.0.10", "handlebars-loader": "1.6.0", + "intersection-observer": "0.4.2", "jquery": "3.2.1", "jquery-textcomplete": "1.8.4", "jquery-ui": "1.12.1",