From 77e61c3631b82fca0b0a0ac5d56d91f8da6822ef Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 26 Feb 2016 20:37:38 +0100 Subject: [PATCH] Add silent option to web notifications (not supported in firefox right now - hopefully soon). --- app/assets/javascripts/app/controllers/widget/notify.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/controllers/widget/notify.coffee b/app/assets/javascripts/app/controllers/widget/notify.coffee index 078548183..9228940e6 100644 --- a/app/assets/javascripts/app/controllers/widget/notify.coffee +++ b/app/assets/javascripts/app/controllers/widget/notify.coffee @@ -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