Move header assignment to app level

This commit is contained in:
Blade Barringer
2015-11-12 12:23:42 -06:00
parent 92a8c3d958
commit 431bbd762f
4 changed files with 5 additions and 5 deletions

View File

@@ -9,8 +9,6 @@ angular.module('habitrpg')
function($scope, $rootScope, User, $http, $location, $window, ApiUrl, $modal, Analytics) {
$scope.Analytics = Analytics;
$http.defaults.headers.common['x-client'] = 'habitica-web';
$scope.logout = function() {
localStorage.clear();
window.location.href = '/logout';