fix: Type errors

This commit is contained in:
Sidharth Vinod
2022-11-15 17:03:25 +05:30
parent 34dafa13c9
commit b0aa0a9cb2
14 changed files with 49 additions and 29 deletions
+1 -2
View File
@@ -166,8 +166,7 @@
if (browser && ['mermaid.live', 'netlify'].some((path) => window.location.host.includes(path))) {
isNetlify = true;
}
stateStore.subscribe(async (state) => {
const { code, serialized } = await state;
stateStore.subscribe(({ code, serialized }) => {
iUrl = `${rendererUrl}/img/${serialized}?type=png`;
svgUrl = `${rendererUrl}/svg/${serialized}`;
krokiUrl = `${krokiRendererUrl}/mermaid/svg/${pakoSerde.serialize(code)}`;