Revert "only recalculate favicon if it changes"
This commit is contained in:
parent
f9db7f017d
commit
47d99885ee
2 changed files with 0 additions and 3 deletions
|
@ -58,7 +58,6 @@ function platformFriendlyName() {
|
||||||
|
|
||||||
export default class ElectronPlatform extends VectorBasePlatform {
|
export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
setNotificationCount(count: number) {
|
setNotificationCount(count: number) {
|
||||||
if (this.notificationCount === number) return;
|
|
||||||
super.setNotificationCount(count);
|
super.setNotificationCount(count);
|
||||||
// this sometimes throws because electron is made of fail:
|
// this sometimes throws because electron is made of fail:
|
||||||
// https://github.com/electron/electron/issues/7351
|
// https://github.com/electron/electron/issues/7351
|
||||||
|
|
|
@ -60,13 +60,11 @@ 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…
Add table
Reference in a new issue