diff --git a/src/d3.js b/src/d3.js index 769aa32fef..697edcf2c2 100644 --- a/src/d3.js +++ b/src/d3.js @@ -2,7 +2,7 @@ //log.debug('Setting up d3'); var d3; -if (require) { +if (typeof require!=='undefined') { try { d3 = require('d3'); } catch (e) { @@ -491,4 +491,4 @@ module.exports = d3; } })(); -/* jshint ignore:end */ \ No newline at end of file +/* jshint ignore:end */