mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(interactive-tour): don't automatically show guide when on mobile devices
This commit is contained in:
@@ -163,6 +163,7 @@ function($rootScope, User, $timeout, $state) {
|
|||||||
var watcher = $rootScope.$watch('User.user.ops.update', function(updateFn){
|
var watcher = $rootScope.$watch('User.user.ops.update', function(updateFn){
|
||||||
if (!updateFn) return; // only run after user has been wrapped
|
if (!updateFn) return; // only run after user has been wrapped
|
||||||
watcher(); // deregister watcher
|
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);
|
goto('intro', User.user.flags.tour.intro, true);
|
||||||
|
|
||||||
var alreadyShown = function(before, after) { return !(!before && after === true) };
|
var alreadyShown = function(before, after) { return !(!before && after === true) };
|
||||||
|
|||||||
Reference in New Issue
Block a user