An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/8454
Vanessa82ce65fa7e2e
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex 0275e67c04..48380d45b7 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -73,6 +73,10 @@ export class Plugin {position?: "right" | "left",callback: (evt: MouseEvent) => void}) {+ if (!options.icon.startsWith("icon") && !options.icon.startsWith("<svg")) {+ console.error(`plugin ${this.name} addTopBar error: icon must be svg id or svg tag`);+ return;+ }const iconElement = document.createElement("div");iconElement.setAttribute("data-menu", "true");iconElement.addEventListener("click", options.callback);diff --git a/app/src/plugin/loader.ts b/app/src/plugin/loader.tsindex 15ae0caa33..8510a22102 100644--- a/app/src/plugin/loader.ts+++ b/app/src/plugin/loader.ts@@ -39,7 +39,7 @@ const loadPluginJS = async (app: App, item: IPluginData) => {try {runCode(item.js, "plugin:" + encodeURIComponent(item.name))(getObject, moduleObj, exportsObj);} catch (e) {- console.error(`eval plugin ${item.name} error:`, e);+ console.error(`plugin ${item.name} run error:`, e);return;}const pluginClass = (moduleObj.exports || exportsObj).default || moduleObj.exports;