parse to json object in case of string body
This commit is contained in:
parent
d621e659be
commit
5173a95d24
1 changed files with 3 additions and 1 deletions
|
|
@ -350,7 +350,9 @@ class Mediator {
|
||||||
console.error('Unknown Device', error)
|
console.error('Unknown Device', error)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if(typeof data === 'string'){
|
||||||
|
data = JSON.parse(data)
|
||||||
|
}
|
||||||
console.log('Event:', eventName)
|
console.log('Event:', eventName)
|
||||||
console.log('Data:', data)
|
console.log('Data:', data)
|
||||||
console.log('Decrypt params:', {
|
console.log('Decrypt params:', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue