diff --git a/dsp.js b/dsp.js index 7188235..85f4e7d 100644 --- a/dsp.js +++ b/dsp.js @@ -2300,7 +2300,7 @@ Reverb.prototype.process = function (interleavedSamples){ return outputSamples; }; -if (module && typeof module.exports !== 'undefined') { +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = { DSP: DSP, DFT: DFT,