Skip to content

Commit

Permalink
Merge pull request oakmac#181 from ofraski/master
Browse files Browse the repository at this point in the history
add common js compatible export
  • Loading branch information
oakmac authored Nov 1, 2019
2 parents 94c9bc5 + bc804fd commit 8a12e91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/chessboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,3 +1815,9 @@
window['Chessboard']['fenToObj'] = fenToObj
window['Chessboard']['objToFen'] = objToFen
})() // end anonymous wrapper

/* export Chessboard object if using node or any other CommonJS compatible
* environment */
if (typeof exports !== 'undefined') {
exports.Chessboard = window.Chessboard
}

0 comments on commit 8a12e91

Please sign in to comment.