expose FS

This commit is contained in:
Sebastián Gurín 2019-08-15 23:09:37 -03:00
parent c546a27de7
commit dd9262c318

View File

@ -38,6 +38,10 @@
// the use of this software, even if advised of the possibility of such damage.
//
if (typeof Module.FS === 'undefined' && typeof FS !== 'undefined') {
Module.FS = FS;
}
Module['imread'] = function(imageSource) {
var img = null;
if (typeof imageSource === 'string') {