Skip to content

Commit

Permalink
export Recorder class if running in Node
Browse files Browse the repository at this point in the history
  • Loading branch information
streamer45 committed Jul 31, 2019
1 parent 6a12e22 commit 714ef56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,7 @@ class Recorder {
this._onData = cb;
}
}

if (typeof module !== 'undefined' && module.exports) {
module.exports = Recorder;
}

0 comments on commit 714ef56

Please sign in to comment.