Skip to content

Commit

Permalink
support commonJS in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Nov 18, 2012
1 parent 20985f2 commit 1967d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fomatto.js
Expand Up @@ -276,5 +276,5 @@
exports.Formatter = Formatter;
exports.FormatError = FormatError;

})(typeof window === 'undefined' ? exports : window);
})(typeof exports !== 'undefined' ? exports : window);

0 comments on commit 1967d8d

Please sign in to comment.