Skip to content

Commit 40cb46d

Browse files
authored
Merge pull request element-hq#7517 from vector-im/dbkr/stop_electron_crashing
Stop electron crashing
2 parents 4154084 + bb907d4 commit 40cb46d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
169169
}
170170

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

0 commit comments

Comments
 (0)