Only start avatar widget on existing session.
This commit is contained in:
parent
9f035fb7af
commit
87b2d0f83d
|
@ -86,6 +86,8 @@ class App.Navigation extends App.Controller
|
|||
active_tab: active_tab
|
||||
)
|
||||
|
||||
# only start avatar widget on existing session
|
||||
if App.Session.get('id')
|
||||
new App.WidgetAvatar(
|
||||
el: @$('.js-avatar')
|
||||
user_id: App.Session.get('id')
|
||||
|
|
Loading…
Reference in a new issue