mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 00:09:41 +00:00
fix(interactive-tour): don't automatically show guide when on mobile devices
This commit is contained in:
parent
62739346c7
commit
232224c497
1 changed files with 1 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ function($rootScope, User, $timeout, $state) {
|
|||
var watcher = $rootScope.$watch('User.user.ops.update', function(updateFn){
|
||||
if (!updateFn) 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
|
||||
goto('intro', User.user.flags.tour.intro, true);
|
||||
|
||||
var alreadyShown = function(before, after) { return !(!before && after === true) };
|
||||
|
|
|
|||
Loading…
Reference in a new issue