mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
fix viewer.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import mermaid2 from '../../packages/mermaid/src/mermaid';
|
||||
import externalExample from '../../packages/mermaid-example-diagram/src/detector';
|
||||
let mermaid2;
|
||||
let externalExample;
|
||||
|
||||
function b64ToUtf8(str) {
|
||||
return decodeURIComponent(escape(window.atob(str)));
|
||||
@@ -144,3 +144,8 @@ if (typeof document !== 'undefined') {
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
export function init(mermaid, external) {
|
||||
mermaid2 = mermaid;
|
||||
externalExample = external;
|
||||
}
|
||||
|
Reference in New Issue
Block a user