Stop electron crashing

Workaround temporarily by not closing notifs on win32 as per
comment.

Fixes https://github.com/vector-im/riot-web/issues/7512
pull/7517/head
David Baker 2018-10-18 18:31:06 +01:00
parent 41540842eb
commit 231ca253f2
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
} }
clearNotification(notif: Notification) { clearNotification(notif: Notification) {
// This crashes on windows under certain circumstances: can't find any
// workaround othet 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(); notif.close();
} }