only recalculate favicon if it changes

pull/3067/head
Matthew Hodgson 2017-01-26 00:28:22 +01:00
parent c1290fd24d
commit 972a391296
1 changed files with 2 additions and 0 deletions

View File

@ -60,11 +60,13 @@ export default class WebPlatform extends VectorBasePlatform {
}
setNotificationCount(count: number) {
if (this.notificationCount === number) return;
super.setNotificationCount(count);
this._updateFavicon();
}
setErrorStatus(errorDidOccur: boolean) {
if (this.errorDidOccur === errorDidOccur) return;
super.setErrorStatus(errorDidOccur);
this._updateFavicon();
}