Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Commit

Permalink
Don't log empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Dec 13, 2017
1 parent 4f37c71 commit 0cb613a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/provider/postMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ class PostMessage extends EventEmitter {

const { data } = this._messages[id];

Logging.send(data.method || data.api, data.params, { result });
if (data) {
Logging.send(data.method || data.api, data.params, { result });
}

if (this._messages[id].subscription) {
// console.log('subscription', result, 'initial?', this._messages[id].initial);
Expand Down

0 comments on commit 0cb613a

Please sign in to comment.