mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 06:34:06 +08:00
Update dependencies
This commit is contained in:
parent
62c5d98e20
commit
64d349a5b6
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);
|
||||
|
||||
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 () {
|
||||
_this3.stream.update();
|
||||
app.store.find('discussions', _this3.discussion.id()).then(function () {
|
||||
_this3.stream.update();
|
||||
|
||||
if (!document.hasFocus()) {
|
||||
app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount));
|
||||
if (!document.hasFocus()) {
|
||||
app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount));
|
||||
|
||||
$(window).one('focus', function () {
|
||||
return app.setTitleCount(0);
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
$(window).one('focus', function () {
|
||||
return app.setTitleCount(0);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user