From bb526513e86a24737e7a0acdab986d5462731cf7 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Wed, 10 Aug 2016 08:32:14 +0530 Subject: [PATCH] Removed enrollment url calculation --- .../jaggeryapps/devicemgt/app/modules/conf-reader/main.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/conf-reader/main.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/conf-reader/main.js index 6731dbd23a..f81849fe3b 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/conf-reader/main.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/conf-reader/main.js @@ -37,12 +37,6 @@ var conf = function () { return value; } ); - if (conf.generalConfig.host) { - //TODO: Move enrollment URL into app-conf.json - var enrollmentHost = conf.generalConfig.host.replace(/https:\/\/localhost(:\d+)?/, conf.httpsURL).replace( - /http:\/\/localhost(:\d+)?/, conf.httpURL); - conf.enrollmentUrl = enrollmentHost + conf.enrollmentDir; - } application.put("CONF", conf); } return conf;