From dd9262c318845eade5d6ab67216482bd2e79304c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Gur=C3=ADn?= Date: Thu, 15 Aug 2019 23:09:37 -0300 Subject: [PATCH] expose FS --- modules/js/src/helpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/js/src/helpers.js b/modules/js/src/helpers.js index 08d1a89b2b..a2f3101b08 100644 --- a/modules/js/src/helpers.js +++ b/modules/js/src/helpers.js @@ -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') {