Refactored subdomain.client.service.js

This commit is contained in:
David Baldwynn 2017-04-22 19:28:30 -07:00 committed by GitHub
parent 89c6dc43f8
commit ac91913501

View file

@ -2,8 +2,8 @@
angular.module('core').factory('subdomain', ['$location', function ($location) {
var host = $location.host();
if (host.indexOf('.') < 0)
if (host.indexOf('.') < 0) {
return null;
else
return host.split('.')[0];
}
return host.split('.')[0];
}]);