mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
@@ -70,7 +70,7 @@ const contentLoadedApi = function () {
|
|||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
pos = pos + 7;
|
pos = pos + 7;
|
||||||
const graphBase64 = document.location.href.substr(pos);
|
const graphBase64 = document.location.href.substr(pos);
|
||||||
const graphObj = JSON.parse(window.btoa(graphBase64));
|
const graphObj = JSON.parse(b64ToUtf8(graphBase64));
|
||||||
// const graph = 'hello'
|
// const graph = 'hello'
|
||||||
if (Array.isArray(graphObj.code)) {
|
if (Array.isArray(graphObj.code)) {
|
||||||
const numCodes = graphObj.code.length;
|
const numCodes = graphObj.code.length;
|
||||||
|
Reference in New Issue
Block a user