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

This commit is contained in:
Denis Wolf
2013-10-28 23:55:45 +02:00
parent c614af2cd9
commit a127fcd056

View File

@@ -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 = {