Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessa79a88dfbece6
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index 528fbb7b66..167f59541f 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -746,7 +746,7 @@ export const openMenuPanel = (options: {
break;
} else if (type === "openAssetItem") {
const assetLink = target.parentElement.dataset.content;
- const suffix = pathPosix().extname(assetLink)
+ const suffix = pathPosix().extname(assetLink);
if (isLocalPath(assetLink) && !isMobile() && (
[".pdf"].concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO).includes(suffix) && (
suffix !== ".pdf" || ( suffix === ".pdf" && !assetLink.startsWith("file://"))
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index f986c72ad2..9d2405cca8 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -21,7 +21,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
if (e.getAttribute("data-render") === "true") {
return;
}
- let time: number
+ let time: number;
if (e.firstElementChild.innerHTML === "") {
e.style.width = e.parentElement.clientWidth - 40 + "px";
time = new Date().getTime();
@@ -34,8 +34,8 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>
<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>
</div>`;
- })
- e.firstElementChild.innerHTML = html
+ });
+ e.firstElementChild.innerHTML = html;
}
const left = e.querySelector(".av__scroll")?.scrollLeft || 0;
const headerTransform = (e.querySelector(".av__row--header") as HTMLElement)?.style.transform;