Skip to content

Commit e060a37

Browse files
author
Michael Keating
committed
Fix if check to account for non node people
1 parent 0dee06e commit e060a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// http://eloquentjavascript.net/appendix2.html
77

88
(function(definition) {
9-
if(typeof module.exports === 'object') {
9+
if(typeof module === 'object' && typeof module.exports === 'object') {
1010
module.exports = definition();
1111
} else if(typeof define === 'function' && define.amd) {
1212
define([], definition);

0 commit comments

Comments
 (0)