Fix file preloading warning in HTML5 platform

This commit is contained in:
Leon Krause
2019-02-23 20:06:22 +01:00
parent 9d78274e06
commit 81554dac61
2 changed files with 2 additions and 5 deletions

View File

@ -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;