send "habitica-web" as x-client header

This commit is contained in:
Phillip Thelen
2015-11-04 16:26:50 +01:00
parent 6ed3ba36ae
commit e13c008076
2 changed files with 4 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
$rootScope.toJson = angular.toJson;
$rootScope.Payments = Payments;
$http.defaults.headers.common['x-client'] = "habitica-web";
// Angular UI Router
$rootScope.$state = $state;
$rootScope.$stateParams = $stateParams;