chore: Format Mermaid.vue

This commit is contained in:
Sidharth Vinod
2022-12-06 15:53:36 +05:30
parent f2ee20fdf5
commit fdf261bda3

View File

@@ -54,10 +54,10 @@ const renderChart = async () => {
console.log('rendering chart' + props.id + props.graph);
const hasDarkClass = document.documentElement.classList.contains('dark');
const mermaidConfig = {
securityLevel: 'loose',
startOnLoad: false,
theme: hasDarkClass ? 'dark' : 'default',
};
securityLevel: 'loose',
startOnLoad: false,
theme: hasDarkClass ? 'dark' : 'default',
};
console.log({ mermaidConfig });
let svgCode = await render(props.id, decodeURIComponent(props.graph), mermaidConfig);