Skip to content

Commit a42a822

Browse files
authored
Update constants.js
1 parent 90d22a4 commit a42a822

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deployment/http-root/ajs/app/components/constants.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
//// Angular Code ////
88
angular.module('codeine').constant('Constants', {
99
CODEINE_NODES_PROJECT_NAME : 'Codeine_Internal_Nodes_Project',
10-
CODEINE_WEB_SERVER : location.hostname.indexOf('127.0.0.1') === -1 ? '' : 'http://icsl2356.iil.intel.com:12377',
11-
CODEINE_API_PREFIX : location.hostname.indexOf('127.0.0.1') === -1 ? '/api' : '/api-with-token',
10+
CODEINE_WEB_SERVER : (location.port === '9000' && location.hostname === '127.0.0.1') ? 'http://icsl2356.iil.intel.com:12377' : '',
11+
CODEINE_API_PREFIX : (location.port === '9000' && location.hostname === '127.0.0.1') ? '/api-with-token' : '/api',
1212
//CODEINE_WEB_SERVER : location.hostname.indexOf('127.0.0.1') === -1 ? '' : 'http://localhost:12347',
1313
EVENTS : {
1414
TAGS_CHANGED : 'tagsChanged',
1515
BREADCRUMB_CLICKED : 'breadcrumbClicked'
1616
}
1717
});
1818

19-
})(angular);
19+
})(angular);

0 commit comments

Comments
 (0)