From 1967d8d915abce045e614375a9fbecc01705780d Mon Sep 17 00:00:00 2001 From: Raynos Date: Sat, 17 Nov 2012 22:12:37 -0800 Subject: [PATCH] support commonJS in browser --- lib/fomatto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fomatto.js b/lib/fomatto.js index 082ba31..5761a64 100644 --- a/lib/fomatto.js +++ b/lib/fomatto.js @@ -276,5 +276,5 @@ exports.Formatter = Formatter; exports.FormatError = FormatError; -})(typeof window === 'undefined' ? exports : window); +})(typeof exports !== 'undefined' ? exports : window);