mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
commit
1903154d01
4
src/d3.js
vendored
4
src/d3.js
vendored
@ -2,7 +2,7 @@
|
|||||||
//log.debug('Setting up d3');
|
//log.debug('Setting up d3');
|
||||||
var d3;
|
var d3;
|
||||||
|
|
||||||
if (require) {
|
if (typeof require!=='undefined') {
|
||||||
try {
|
try {
|
||||||
d3 = require('d3');
|
d3 = require('d3');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -491,4 +491,4 @@ module.exports = d3;
|
|||||||
}
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
/* jshint ignore:end */
|
/* jshint ignore:end */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user