diff options
-rwxr-xr-x | tools/reproduceriter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py index 076de493..d5bb1ac7 100755 --- a/tools/reproduceriter.py +++ b/tools/reproduceriter.py @@ -348,14 +348,16 @@ if (typeof nagivator == 'undefined') { this.terminate = function(){}; this.postMessage = function(msg) { window.setTimeout(function() { - onmessage(msg); + print('worker ' + path + ' receiving onmessage'); + onmessage({ data: msg }); }); }; var thisWorker = this; var postMessage = function(msg) { if (thisWorker.onmessage) { window.setTimeout(function() { - thisWorker.onmessage(msg); + print('main thread receiving message from ' + path); + thisWorker.onmessage({ data: msg }); }); } }; |