mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3 client: fix sticky header
This commit is contained in:
@@ -8,6 +8,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
var user = User.user;
|
||||
|
||||
var initSticky = _.once(function(){
|
||||
console.log('here', User.user.preferences.stickyHeader);
|
||||
if (window.env.IS_MOBILE || User.user.preferences.stickyHeader === false) return;
|
||||
$('.header-wrap').sticky({topSpacing:0});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user