From fb1f7771c447d07d38f9eab1ed13c2148636cbe8 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Thu, 19 Jan 2017 22:36:21 +0530 Subject: [PATCH] Fixing "process" not found on devicemgt --- .../main/resources/jaggeryapps/uuf-template-app/lib/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/lib/utils.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/lib/utils.js index a7e006682d6..4bdb1edcbc0 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/lib/utils.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/lib/utils.js @@ -360,7 +360,8 @@ var utils = {}; if (updateCache) { appConfFile.open("r"); var content = appConfFile.readAll(); - var getProperty = require("process").getProperty; + var process = require("process"); + var getProperty = process.getProperty; content = content.replace(/\$\{server\.ip}/g, getProperty("carbon.local.ip")); content = content.replace(/\$\{server\.http_port}/g, getProperty("carbon.http.port")); content = content.replace(/\$\{server\.https_port}/g, getProperty("carbon.https.port"));