Skip to content

Commit

Permalink
Fixed bug in Javascript bridge that seemed to affect Android only. Th…
Browse files Browse the repository at this point in the history
…is bug would sometimes cause get() to return null for a Javascript expression that should be non-null. Tested in Simulator, Android, and iOS working.
  • Loading branch information
shannah committed Jan 25, 2016
1 parent 1ff0bcc commit cf19584
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ private synchronized String exec(String js, boolean async){
}
if (async) {

browser.execute(installCode()+"("+js+")");
browser.execute(installCode()+";("+js+")");
return null;
} else {
return browser.executeAndReturnString(installCode()+"("+js+")");
return browser.executeAndReturnString(installCode()+";("+js+")");
}
}

Expand Down

0 comments on commit cf19584

Please sign in to comment.