utils.js - detect node/browser with IF, not silent TRY/CATCH

v1.18.x
Denis Wolf 12 years ago
parent c614af2cd9
commit a127fcd056

@ -3,9 +3,9 @@
var utils, fs; var utils, fs;
try { if ('undefined' === typeof window) {
fs = require('fs'); fs = require('fs');
} catch (e) {} }
module.exports = utils = { module.exports = utils = {

Loading…
Cancel
Save