Add silent option to web notifications (not supported in firefox right now - hopefully soon).

This commit is contained in:
Martin Edenhofer 2016-02-26 20:37:38 +01:00
parent 09a49b0a48
commit 77e61c3631

View file

@ -27,6 +27,7 @@ class App.Notify extends App.ControllerWidgetPermanent
@desktopNotifyCounter += 1
counter = @desktopNotifyCounter
data.silent = true
notification = new window.Notification(data.title, data)
@desktopNotify[counter] = notification
@log 'debug', 'notifyDesktop', data, counter