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

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

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

Loading…
Cancel
Save