mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
Fix fir defect #141 regarding comment characters
This commit is contained in:
15
src/diagrams/flowchart/d3.js
vendored
Normal file
15
src/diagrams/flowchart/d3.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* global window */
|
||||
|
||||
var d3;
|
||||
|
||||
if (require) {
|
||||
try {
|
||||
d3 = require("d3");
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
if (!d3) {
|
||||
d3 = window.d3;
|
||||
}
|
||||
|
||||
module.exports = d3;
|
Reference in New Issue
Block a user