aboutsummaryrefslogtreecommitdiff
path: root/src/shell.js
diff options
context:
space:
mode:
authorJanus <ysangkok@gmail.com>2012-10-11 21:18:14 +0200
committerJanus <ysangkok@gmail.com>2012-10-11 21:18:14 +0200
commite2046bb8ce2b2ccaaca5328f21a79c6efe15f336 (patch)
treee901ba5b782ebb4013a4181d8bd8bcc86523d742 /src/shell.js
parent140dccb5663212c2c8027aa12597a095f1356a89 (diff)
add chunked lazy sync XHR loading in Web Workers
Diffstat (limited to 'src/shell.js')
-rw-r--r--src/shell.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js
index 065462e1..83057f6f 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -81,6 +81,8 @@ if (ENVIRONMENT_IS_WEB) {
}
if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
+ Uint8Array.prototype.get = function(idx) { return this[idx]; };
+
Module['read'] = function(url) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, false);