Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
Change default api to empty string = same server.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen304 committed Jan 15, 2015
1 parent a5c14a5 commit 761474f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ angular
})
.run(function($rootScope, $window) {
if (typeof $window.localStorage.api === 'undefined' || $window.localStorage.api === '') {
$rootScope.api = 'http://localhost:1337';
$rootScope.api = '';// Old default http://localhost:1337
}
else {
$rootScope.api = $window.localStorage.api;
Expand Down
2 changes: 1 addition & 1 deletion web/app/scripts/controllers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ angular.module('bitCannonApp')
};
$scope.resetAPI = function() {
delete $window.localStorage.api;
$rootScope.api = 'http://localhost:1337';
$rootScope.api = '';// Old default http://localhost:1337
$scope.apiBox = $rootScope.api;
};
$scope.apiBox = $rootScope.api;
Expand Down

0 comments on commit 761474f

Please sign in to comment.