diff --git a/modules/js/src/helpers.js b/modules/js/src/helpers.js index 08d1a89b2b708a4d74804fb6cb214d91c0892ec3..a2f3101b08d0026e81a0f8780e771a8c7bc84906 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') {