Skip to content

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

:art: https://github.com/siyuan-note/siyuan/pull/17167

Daniel7c0004bfa08c
diff --git a/app/src/plugin/platformUtils.ts b/app/src/plugin/platformUtils.ts
index f16f2257f7..18771548b6 100644
--- a/app/src/plugin/platformUtils.ts
+++ b/app/src/plugin/platformUtils.ts
@@ -25,7 +25,7 @@ export interface ISendNotificationOptions {
title?: string,
body?: string,
delayInSeconds?: number,
- timeoutType?: "default" | "never"
+ timeoutType?: "default" | "never" // 该参数仅在桌面端有效
}
export const sendNotification = (options: ISendNotificationOptions): Promise<number> => {
@@ -40,7 +40,7 @@ export const sendNotification = (options: ISendNotificationOptions): Promise<num
}
/// #if BROWSER
- const channel = options.channel || "Plugin Notification";
+ const channel = options.channel || "SiYuan Notifications";
if (window.JSAndroid && window.JSAndroid.sendNotification) {
const id = window.JSAndroid.sendNotification(channel, title, body, delayInSeconds);
resolve(id);