mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 17:16:32 +08:00
FIX: Favicon count was not updated when window focus returned (#10875)
This misses a test because Favcount doesn't exposes a get to the counter. Also, since this code deals with all possible notifications configs we support: - favicon notification - favicon new content - title notification - title new content the code is a bit complicated to follow. We may look into refactoring it when a good opportunity arises, like if https://w3c.github.io/badging/ setClientBadge() method gives us a cleaner way to notify users.
This commit is contained in:
parent
4a8f5dbfbd
commit
5157e3b6e3
|
@ -44,6 +44,7 @@ export default Service.extend({
|
|||
this.notificationCount = 0;
|
||||
}
|
||||
this.appEvents.trigger("discourse:focus-changed", session.hasFocus);
|
||||
this._renderFavicon();
|
||||
this._renderTitle();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user