From 972a3912968752180d72bcbece3c18b8f433a476 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 26 Jan 2017 00:28:22 +0100 Subject: [PATCH] only recalculate favicon if it changes --- src/vector/platform/WebPlatform.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js index 2029822b61..dda22f3c04 100644 --- a/src/vector/platform/WebPlatform.js +++ b/src/vector/platform/WebPlatform.js @@ -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(); }