parse to json object in case of string body

This commit is contained in:
boufni95 2020-01-30 21:17:51 +01:00
parent d621e659be
commit 5173a95d24

View file

@ -350,7 +350,9 @@ class Mediator {
console.error('Unknown Device', error)
return false
}
if(typeof data === 'string'){
data = JSON.parse(data)
}
console.log('Event:', eventName)
console.log('Data:', data)
console.log('Decrypt params:', {