summaryrefslogtreecommitdiffstats
path: root/platform/javascript/engine.js
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2019-02-23 20:06:22 +0100
committerLeon Krause <lk@leonkrause.com>2019-02-23 20:06:22 +0100
commit81554dac615765bf5131189e5035865b976cfae3 (patch)
tree573adc1bd7115d43551979cb686013f64b81d617 /platform/javascript/engine.js
parent9d78274e068d4928044220c4d5c1a7baed423670 (diff)
downloadredot-engine-81554dac615765bf5131189e5035865b976cfae3.tar.gz
Fix file preloading warning in HTML5 platform
Diffstat (limited to 'platform/javascript/engine.js')
-rw-r--r--platform/javascript/engine.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/engine.js b/platform/javascript/engine.js
index 91458eb4c3..860d6707ff 100644
--- a/platform/javascript/engine.js
+++ b/platform/javascript/engine.js
@@ -199,7 +199,8 @@
}
LIBS.FS.mkdirTree(dir);
}
- LIBS.FS.createDataFile('/', file.path, new Uint8Array(file.buffer), true, true, true);
+ // With memory growth, canOwn should be false.
+ LIBS.FS.createDataFile(file.path, null, new Uint8Array(file.buffer), true, true, false);
}, this);
preloadedFiles = null;