mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
#2008 add option to disable sticky header
This commit is contained in:
@@ -8,7 +8,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
var user = User.user;
|
||||
|
||||
var initSticky = _.once(function(){
|
||||
if (window.env.IS_MOBILE) return;
|
||||
if (window.env.IS_MOBILE || User.user.preferences.stickyHeader === false) return;
|
||||
$('.header-wrap').sticky({topSpacing:0});
|
||||
})
|
||||
$rootScope.$on('userUpdated',initSticky);
|
||||
|
||||
Reference in New Issue
Block a user