Skip to content

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

:bug: Show marketplace download progress on mobile https://github.com/siyuan-note/siyuan/issues/17151

Daniel83d5b12457f5
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 6bbcb2df59..bb5b4d8beb 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -425,15 +425,16 @@ export const bootSync = () => {
};
export const downloadProgress = (data: { id: string, percent: number }) => {
- const bazaarSideElement = document.querySelector("#configBazaarReadme .item__side");
+ const bazaarReadmeElement = document.querySelector("#configBazaarReadme");
+ const bazaarSideElement = bazaarReadmeElement?.querySelector(".item__side");
if (!bazaarSideElement) {
return;
}
if (data.id !== (bazaarSideElement.getAttribute("data-progress-id") || bazaarSideElement.getAttribute("data-repourl"))) {
return;
}
- const installBtnElement = bazaarSideElement.querySelector('[data-type="install"]') as HTMLElement;
- const updateBtnElement = bazaarSideElement.querySelector('[data-type="install-t"]') as HTMLElement;
+ const installBtnElement = bazaarReadmeElement.querySelector('[data-type="install"]') as HTMLElement;
+ const updateBtnElement = bazaarReadmeElement.querySelector('[data-type="install-t"]') as HTMLElement;
if (!installBtnElement && !updateBtnElement) {
return;
}