diff --git a/package.json b/package.json index 5bbc6cd..29e2d06 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "icon": "./icon.svg" }, "name": "logseq-mermaid-plugin", - "version": "1.0.3", + "version": "1.0.4", "description": "", "main": "dist/index.html", "targets": { diff --git a/src/convert.ts b/src/convert.ts index e3c139c..b91940b 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -8,7 +8,7 @@ export const convert = async (data: string) => { const jsonString = btoa(toDecode); let status = ''; - await fetch(`https://mermaid.ink/img/${jsonString}`, { method: 'HEAD' }) + await fetch(`https://mermaid.ink/img/${jsonString}`, { method: 'GET' }) .then((res) => { if (res.ok) { status = ``;