Skip to content

Commit

Permalink
improve support for browser usage
Browse files Browse the repository at this point in the history
I was getting a : `module not defined` followed by `ansi2html not defined` wihtout this.
  • Loading branch information
tobeportable committed Mar 19, 2014
1 parent aebfa9a commit 3bea632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function(){
function declare(module_name, exports) {
if (module) module.exports = exports
if (typeof module != 'undefined') module.exports = exports
else window[module_name] = exports
}

Expand Down

0 comments on commit 3bea632

Please sign in to comment.