mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Move header assignment to app level
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user