aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-12-17 18:07:37 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-12-18 15:07:06 +0200
commit30035e6e4268c3bd54a895b42f5da337660a8097 (patch)
treed634d3e34fb1bace1b96a3e46f31bae54835053d /src
parent0278654453a6beec62810699035a10b05e0631c2 (diff)
Add support for launching Android browsers via emrun. Fix log message print ordering with explicit synchronization.
Diffstat (limited to 'src')
-rw-r--r--src/emrun_postjs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emrun_postjs.js b/src/emrun_postjs.js
index e1ef9e2d..eec203ec 100644
--- a/src/emrun_postjs.js
+++ b/src/emrun_postjs.js
@@ -4,8 +4,8 @@ function emrun_register_handlers() {
http.open("POST", "stdio.html", true);
http.send(msg);
}
- // If the address contains localhost, we can assume we're running the test runner and should post stdout logs.
- if (document.URL.search("localhost") != -1) {
+ // If the address contains localhost, or we are running the page from port 6931, we can assume we're running the test runner and should post stdout logs.
+ if (document.URL.search("localhost") != -1 || document.URL.search(":6931/") != -1) {
var emrun_http_sequence_number = 1;
var prevExit = Module['exit'];
var prevPrint = Module['print'];