Skip to content

Commit

Permalink
Merge pull request #7517 from vector-im/dbkr/stop_electron_crashing
Browse files Browse the repository at this point in the history
Stop electron crashing
  • Loading branch information
dbkr committed Oct 18, 2018
2 parents 4154084 + bb907d4 commit 40cb46d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vector/platform/ElectronPlatform.js
Expand Up @@ -169,6 +169,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
}

clearNotification(notif: Notification) {
// This crashes on windows under certain circumstances: can't find any
// workaround other than not closing notifs.
// https://github.com/electron/electron/issues/15251
// https://github.com/vector-im/riot-web/issues/7512
if (window.process.platform === 'win32') return;
notif.close();
}

Expand Down

0 comments on commit 40cb46d

Please sign in to comment.