From 9797c2fb4b8807c31847216ea04fa16341f93feb Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 26 Jan 2017 00:31:52 +0100 Subject: [PATCH] fix electron too --- src/vector/platform/ElectronPlatform.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index 47bfd990..18ad4a5d 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -58,6 +58,7 @@ function platformFriendlyName() { export default class ElectronPlatform extends VectorBasePlatform { setNotificationCount(count: number) { + if (this.notificationCount === number) return; super.setNotificationCount(count); // this sometimes throws because electron is made of fail: // https://github.com/electron/electron/issues/7351