Update device-view.js

revert-dabc3590
Dunith Dhanushka 8 years ago committed by GitHub
parent 54b08f9b7a
commit d4107747ab

@ -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();
}
}
}
}

Loading…
Cancel
Save