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') {