Skip to content
Browse files

Added web browser global

  • Loading branch information...
1 parent 6b4a81f commit 6f7ae485aba8548a307281ece5c58c91e8d08e88 @joelvh committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/json2json.coffee
View
3 lib/json2json.coffee
@@ -1,6 +1,7 @@
-
# load modules in CommonJS/Node.js environment, not needed in browser
if exports? && require?
exports.ObjectTemplate = require './ObjectTemplate'
exports.TemplateConfig = require './TemplateConfig'
+else if window?
+ window.json2json = {}

0 comments on commit 6f7ae48

Please sign in to comment.
Something went wrong with that request. Please try again.