"use strict";

angular.module("hikeio").
	service("config", ["$location", function($location) {
		this.isProd = $location.host() === "hike.io";
		this.hikeImagesPath = this.isProd ? "http://assets.hike.io/hike-images" : "/hike-images";
		this.landingPageImagesPath = this.isProd ? "http://assets.hike.io/landing-page-images" : "/landing-page-images";
		this.socketIoPath = this.isProd ? "http://socket.hike.io:8080" : "http://localhost:8080";
	}]);
"use strict";

angular.module("hikeio").
	service("config", ["$location", function($location) {
		this.isProd = $location.host() === "hike.io";
		this.hikeImagesPath = this.isProd ? "http://assets.hike.io/hike-images" : "/hike-images";
		this.landingPageImagesPath = this.isProd ? "http://assets.hike.io/landing-page-images" : "/landing-page-images";
		this.socketIoPath = this.isProd ? "http://socket.hike.io" : "http://localhost:8080";
	}]);
Use port 80 for socket server.
Use port 80 for socket server.
