Add the 'silent' flag to notifications

Because we play our own sounds
This commit is contained in:
David Baker 2016-10-26 15:10:53 +01:00
parent c2b487cc79
commit fac539c102
2 changed files with 8 additions and 6 deletions

View file

@ -47,9 +47,10 @@ export default class ElectronPlatform extends BasePlatform {
const notification = new global.Notification(
title,
{
"body": msg,
"icon": avatarUrl,
"tag": "vector"
body: msg,
icon: avatarUrl,
tag: "vector",
silent: true, // we play our own sounds
}
);

View file

@ -69,9 +69,10 @@ export default class WebPlatform extends BasePlatform {
const notification = new global.Notification(
title,
{
"body": msg,
"icon": avatarUrl,
"tag": "vector"
body: msg,
icon: avatarUrl,
tag: "vector",
silent: true, // we play our own sounds
}
);