Skip to content

Commit

Permalink
Need to coerce messags into a string on Android 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Oct 24, 2012
1 parent 884cb0e commit 6881d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/android/exec.js
Expand Up @@ -199,6 +199,8 @@ androidExec.processMessages = function(messages) {
window.setTimeout(pollOnce, 0);
break;
}
// Needed for Android 2.2
messages = "" + messages;
var spaceIdx = messages.indexOf(' ');
var msgLen = +messages.slice(0, spaceIdx);
var message = messages.substr(spaceIdx + 1, msgLen);
Expand Down

0 comments on commit 6881d72

Please sign in to comment.