mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
only recalculate favicon if it changes
This commit is contained in:
parent
c1290fd24d
commit
972a391296
@ -60,11 +60,13 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setNotificationCount(count: number) {
|
setNotificationCount(count: number) {
|
||||||
|
if (this.notificationCount === number) return;
|
||||||
super.setNotificationCount(count);
|
super.setNotificationCount(count);
|
||||||
this._updateFavicon();
|
this._updateFavicon();
|
||||||
}
|
}
|
||||||
|
|
||||||
setErrorStatus(errorDidOccur: boolean) {
|
setErrorStatus(errorDidOccur: boolean) {
|
||||||
|
if (this.errorDidOccur === errorDidOccur) return;
|
||||||
super.setErrorStatus(errorDidOccur);
|
super.setErrorStatus(errorDidOccur);
|
||||||
this._updateFavicon();
|
this._updateFavicon();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user