1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Removing front end double parsing of socket messages

previously the socket messages were double encoded w/ quotations
This commit is contained in:
jaredevantabor 2016-10-20 09:17:50 -07:00
parent af82273948
commit bc1561fc67

View File

@ -74,9 +74,6 @@ export default
// Function called when messages are received on by the UI from
// the API over the websocket. This will route each message to
// the appropriate controller for the current $state.
e.data = e.data.replace(/\\/g, '');
e.data = e.data.substr(0, e.data.length-1);
e.data = e.data.substr(1);
$log.debug('Received From Server: ' + e.data);
var data = JSON.parse(e.data), str = "";