Skip to content

Commit

Permalink
Only stringify iFrame messages if MICRO
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworiordan committed Sep 30, 2015
1 parent 6f40e1c commit ce92eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser/lib/transport/iframeagent.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@
};

IframeAgent.prototype.send = function(msg, callback) {
Logger.logAction(Logger.LOG_MICRO, 'IframeAgent.send()', 'msg = ' + JSON.stringify(msg));
if (Logger.shouldLog(Logger.LOG_MICRO)) {
Logger.logAction(Logger.LOG_MICRO, 'IframeAgent.send()', 'msg = ' + JSON.stringify(msg));
}

if(this.sendRequest) {
/* there is a pending send, so queue this message */
this.pendingItems = this.pendingItems || [];
Expand Down

0 comments on commit ce92eb4

Please sign in to comment.