v3 client: fix sticky header

This commit is contained in:
Matteo Pagliazzi
2016-05-18 17:16:40 +02:00
parent 73dd9f5920
commit 95542cd42e
3 changed files with 6 additions and 3 deletions

View File

@@ -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});
})