From 667aa38d42bd80a5774d7aceeba02b51bfdacbde Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Wed, 13 Mar 2024 21:49:53 +0800
Subject: [PATCH] :art: Use the path ending with `/` when loading the widget
https://github.com/siyuan-note/siyuan/issues/10520
---
app/src/protyle/hint/extend.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index 06ea1dd2e..2a137d804 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -447,7 +447,9 @@ export const hintRenderTemplate = (value: string, protyle: IProtyle, nodeElement
export const hintRenderWidget = (value: string, protyle: IProtyle) => {
focusByRange(protyle.toolbar.range);
- insertHTML(protyle.lute.SpinBlockDOM(``), protyle, true);
+ // src 地址以 / 结尾
+ // Use the path ending with `/` when loading the widget https://github.com/siyuan-note/siyuan/issues/10520
+ insertHTML(protyle.lute.SpinBlockDOM(``), protyle, true);
hideElements(["util"], protyle);
};