Skip to content

Commit

Permalink
Merge pull request #26 from malaretv/gh-pages
Browse files Browse the repository at this point in the history
Support module.exports in the browser
  • Loading branch information
tmcw committed Nov 23, 2015
2 parents 19ec3d3 + e30b63b commit b005df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc.js
Expand Up @@ -246,7 +246,7 @@ GreatCircle.prototype.Arc = function(npoints,options) {
return arc;
};

if (typeof window === 'undefined') {
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
// nodejs
module.exports.Coord = Coord;
module.exports.Arc = Arc;
Expand Down

0 comments on commit b005df0

Please sign in to comment.