From 382b328262c6a0f2ae7a4d5d325c566b18979446 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 4 Aug 2017 11:04:46 +0300 Subject: [PATCH] fix(postmessagebackend): JS error when response is sent. --- modules/transport/PostMessageTransportBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/transport/PostMessageTransportBackend.js b/modules/transport/PostMessageTransportBackend.js index d0a72d0a0..bd158ca4b 100644 --- a/modules/transport/PostMessageTransportBackend.js +++ b/modules/transport/PostMessageTransportBackend.js @@ -158,7 +158,7 @@ export default class PostMessageTransportBackend { // Transport class. That's why we are passing only the original // object passed by the consumer of the Transport class which is // message.data. - this._sendLegacyMessage(message.data); + this._sendLegacyMessage(message.data || {}); } }