Skip to content

Commit 231ca25

Browse files
committed
Stop electron crashing
Workaround temporarily by not closing notifs on win32 as per comment. Fixes element-hq#7512
1 parent 4154084 commit 231ca25

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 othet 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)