diff configuration.js @ 8:461a24a5a788

Silent errors when testing if we are server- or client-side.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 02 Nov 2011 09:48:28 -0700
parents f62b5c395a48
children 360186772aa3
line wrap: on
line diff
--- a/configuration.js
+++ b/configuration.js
@@ -18,7 +18,7 @@
 
 'use strict';
 
-var config = exports || {};
+var config = (typeof exports !== 'undefined')? exports: {};
 
 // The JID and password of the account used.
 config.jid = 'blog@linkmauve.fr';