fix(postmessagebackend): JS error when response is sent.

This commit is contained in:
hristoterezov 2017-08-04 11:04:46 +03:00 committed by virtuacoplenny
parent b81dc4e59b
commit 382b328262
1 changed files with 1 additions and 1 deletions

View File

@ -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 || {});
}
}