From a42a822258f190bee114a498639ff64aa9a6a331 Mon Sep 17 00:00:00 2001 From: Roi Ezra Date: Tue, 13 Nov 2018 11:14:02 +0200 Subject: [PATCH] Update constants.js --- deployment/http-root/ajs/app/components/constants.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/http-root/ajs/app/components/constants.js b/deployment/http-root/ajs/app/components/constants.js index 26b1ee0a..038bfba2 100644 --- a/deployment/http-root/ajs/app/components/constants.js +++ b/deployment/http-root/ajs/app/components/constants.js @@ -7,8 +7,8 @@ //// Angular Code //// angular.module('codeine').constant('Constants', { CODEINE_NODES_PROJECT_NAME : 'Codeine_Internal_Nodes_Project', - CODEINE_WEB_SERVER : location.hostname.indexOf('127.0.0.1') === -1 ? '' : 'http://icsl2356.iil.intel.com:12377', - CODEINE_API_PREFIX : location.hostname.indexOf('127.0.0.1') === -1 ? '/api' : '/api-with-token', + CODEINE_WEB_SERVER : (location.port === '9000' && location.hostname === '127.0.0.1') ? 'http://icsl2356.iil.intel.com:12377' : '', + CODEINE_API_PREFIX : (location.port === '9000' && location.hostname === '127.0.0.1') ? '/api-with-token' : '/api', //CODEINE_WEB_SERVER : location.hostname.indexOf('127.0.0.1') === -1 ? '' : 'http://localhost:12347', EVENTS : { TAGS_CHANGED : 'tagsChanged', @@ -16,4 +16,4 @@ } }); -})(angular); \ No newline at end of file +})(angular);