mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #290 from KiranNiranjan/ELECTRON-262
Electron-262 (Fixes Badge Count Issue)
This commit is contained in:
commit
665f35b08e
@ -367,8 +367,17 @@ function createAPI() {
|
||||
});
|
||||
}
|
||||
|
||||
// reset the badge count whenever an user refreshes the electron client
|
||||
function resetBadgeCount() {
|
||||
local.ipcRenderer.send(apiName, {
|
||||
cmd: apiCmds.setBadgeCount,
|
||||
count: 0
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('offline', updateOnlineStatus, false);
|
||||
window.addEventListener('online', updateOnlineStatus, false);
|
||||
window.addEventListener('beforeunload', resetBadgeCount, false);
|
||||
|
||||
updateOnlineStatus();
|
||||
}
|
Loading…
Reference in New Issue
Block a user