v3 client: misc fixes

This commit is contained in:
Matteo Pagliazzi
2016-05-16 12:54:43 +02:00
parent 4d08fde068
commit ab27ef47fe
5 changed files with 35 additions and 24 deletions

View File

@@ -264,8 +264,8 @@ function($rootScope, User, $timeout, $state, Analytics) {
}
//Init and show the welcome tour (only after user is pulled from server & wrapped).
var watcher = $rootScope.$watch('User.user.ops.update', function(updateFn){
if (!updateFn) return; // only run after user has been wrapped
var watcher = $rootScope.$watch('User.user._wrapped', function(wrapped){
if (!wrapped) return; // only run after user has been wrapped
watcher(); // deregister watcher
if (window.env.IS_MOBILE) return; // Don't show tour immediately on mobile devices
if (User.user.flags.welcomed == false) {