Skip to content

Commit

Permalink
bugfix for browser usage
Browse files Browse the repository at this point in the history
  • Loading branch information
caitoor committed May 21, 2023
1 parent 2c75c00 commit b51a0fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gmynd.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,4 +647,7 @@ if (typeof window !== 'undefined') {
window.gmynd = gmynd;
}

module.exports = gmynd;
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
// if in a node project
module.exports = gmynd;
}

0 comments on commit b51a0fa

Please sign in to comment.