Set desktop notifcation for visable pages on app startup.

This commit is contained in:
Martin Edenhofer 2013-05-12 00:30:39 +02:00
parent 6e150a93c5
commit 44bef26d92

View file

@ -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 )