mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Removing front end double parsing of socket messages
previously the socket messages were double encoded w/ quotations
This commit is contained in:
@@ -74,9 +74,6 @@ export default
|
|||||||
// Function called when messages are received on by the UI from
|
// Function called when messages are received on by the UI from
|
||||||
// the API over the websocket. This will route each message to
|
// the API over the websocket. This will route each message to
|
||||||
// the appropriate controller for the current $state.
|
// 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);
|
$log.debug('Received From Server: ' + e.data);
|
||||||
|
|
||||||
var data = JSON.parse(e.data), str = "";
|
var data = JSON.parse(e.data), str = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user