From 44bef26d9259a4457399b3f21d6fbd826ec3e44c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 12 May 2013 00:30:39 +0200 Subject: [PATCH] Set desktop notifcation for visable pages on app startup. --- app/assets/javascripts/app/controllers/notify.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/notify.js.coffee b/app/assets/javascripts/app/controllers/notify.js.coffee index ea5ef516c..aab24f0a3 100644 --- a/app/assets/javascripts/app/controllers/notify.js.coffee +++ b/app/assets/javascripts/app/controllers/notify.js.coffee @@ -22,9 +22,10 @@ class App.Notify extends Spine.Controller # request desktop notification after login App.Event.bind 'auth', (data) -> if !_.isEmpty(data) - notify.config( pageVisibility: false ) notify.requestPermission() + notify.config( pageVisibility: false ) + render: (data) -> # notify = App.view('notify')(data: data) # @append( notify )