Fixing events for anonymous users
parent
c1e5eb285b
commit
7130737f34
|
@ -573,9 +573,10 @@ init = ($log, $rootscope, $auth, $events, $analytics, $translate, $location, $na
|
||||||
Promise.setScheduler (cb) ->
|
Promise.setScheduler (cb) ->
|
||||||
$rootscope.$evalAsync(cb)
|
$rootscope.$evalAsync(cb)
|
||||||
|
|
||||||
|
$events.setupConnection()
|
||||||
|
|
||||||
# Load user
|
# Load user
|
||||||
if $auth.isAuthenticated()
|
if $auth.isAuthenticated()
|
||||||
$events.setupConnection()
|
|
||||||
user = $auth.getUser()
|
user = $auth.getUser()
|
||||||
|
|
||||||
# Analytics
|
# Analytics
|
||||||
|
|
Loading…
Reference in New Issue