fix viewer.js

This commit is contained in:
Sidharth Vinod
2023-02-19 21:43:50 +05:30
parent a88789fe07
commit 284ef24deb
6 changed files with 30 additions and 23 deletions

View File

@@ -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;
}