Set desktop notifcation for visable pages on app startup.
This commit is contained in:
parent
6e150a93c5
commit
44bef26d92
1 changed files with 2 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue