Update device-view.js

This commit is contained in:
Dunith Dhanushka 2017-01-17 15:35:59 +05:30 committed by GitHub
parent 54b08f9b7a
commit d4107747ab

View File

@ -35,11 +35,11 @@ function onRequest(context) {
"autoCompleteParams": autoCompleteParams,
"encodedFeaturePayloads": "",
"portalUrl" : devicemgtProps['portalURL'],
"anchor" : JSON.stringify(anchor)
"anchor" : encodeURI(JSON.stringify(anchor))
};
} else {
response.sendError(404, "Device Id " + deviceId + " of type " + deviceType + " cannot be found!");
exit();
}
}
}
}