Skip to content

Commit 30fa7fe

Browse files
authored
Merge pull request #26 from crhallberg/module_export
Add module exports without causing a console message.
2 parents 92c35cd + d352e64 commit 30fa7fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quadtree.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,6 @@ class QuadTree {
163163

164164
}
165165

166-
((module ? module.exports = { Point, Rectangle, QuadTree, Circle } : 0));
167-
166+
if (typeof module !== "undefined") {
167+
module.exports = { Point, Rectangle, QuadTree, Circle };
168+
}

0 commit comments

Comments
 (0)