mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 12:45:11 +08:00
Merge pull request #7517 from vector-im/dbkr/stop_electron_crashing
Stop electron crashing
This commit is contained in:
commit
40cb46de46
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user