mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02:00
Update dependencies
This commit is contained in:
22
extensions/pusher/js/forum/dist/extension.js
vendored
22
extensions/pusher/js/forum/dist/extension.js
vendored
@@ -133,21 +133,19 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co
|
|||||||
var id = String(data.discussionId);
|
var id = String(data.discussionId);
|
||||||
|
|
||||||
if (_this3.discussion && _this3.discussion.id() === id && _this3.stream) {
|
if (_this3.discussion && _this3.discussion.id() === id && _this3.stream) {
|
||||||
(function () {
|
var oldCount = _this3.discussion.commentsCount();
|
||||||
var oldCount = _this3.discussion.commentsCount();
|
|
||||||
|
|
||||||
app.store.find('discussions', _this3.discussion.id()).then(function () {
|
app.store.find('discussions', _this3.discussion.id()).then(function () {
|
||||||
_this3.stream.update();
|
_this3.stream.update();
|
||||||
|
|
||||||
if (!document.hasFocus()) {
|
if (!document.hasFocus()) {
|
||||||
app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount));
|
app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount));
|
||||||
|
|
||||||
$(window).one('focus', function () {
|
$(window).one('focus', function () {
|
||||||
return app.setTitleCount(0);
|
return app.setTitleCount(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user