Add IntersectionObserver polyfill

This commit is contained in:
Pavel Djundik 2017-08-23 00:04:55 +03:00 committed by Jérémie Astori
parent 838eca8fe5
commit e2db8b23a4
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,8 @@ const condensed = require("./condensed");
const chat = $("#chat"); const chat = $("#chat");
const sidebar = $("#sidebar"); const sidebar = $("#sidebar");
require("intersection-observer");
const historyObserver = window.IntersectionObserver ? const historyObserver = window.IntersectionObserver ?
new window.IntersectionObserver(loadMoreHistory, { new window.IntersectionObserver(loadMoreHistory, {
root: chat.get(0) root: chat.get(0)

View File

@ -73,6 +73,7 @@
"fuzzy": "0.1.3", "fuzzy": "0.1.3",
"handlebars": "4.0.10", "handlebars": "4.0.10",
"handlebars-loader": "1.6.0", "handlebars-loader": "1.6.0",
"intersection-observer": "0.4.2",
"jquery": "3.2.1", "jquery": "3.2.1",
"jquery-textcomplete": "1.8.4", "jquery-textcomplete": "1.8.4",
"jquery-ui": "1.12.1", "jquery-ui": "1.12.1",