diff options
-rw-r--r-- | src/proxyWorker.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js index a844eac8..820f0a34 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -119,6 +119,12 @@ Module.printErr = function Module_printErr(x) { postMessage({ target: 'stderr', content: x }); }; +// Browser hooks + +Browser.resizeListeners.push(function(width, height) { + postMessage({ target: 'canvas', op: 'resize', width: width, height: height }); +}); + // buffer messages until the program starts to run var messageBuffer = null; |