From 1b43384a1e7bdbb78cb094a78beb792959b63cdd Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 9 Dec 2022 23:12:47 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20Windows/macOS=20=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=E7=AB=AF=E6=94=AF=E6=8C=81=E5=BC=80=E6=9C=BA=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/6833?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/config/about.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/config/about.ts b/app/src/config/about.ts index 19fc75f38..94432d4ef 100644 --- a/app/src/config/about.ts +++ b/app/src/config/about.ts @@ -397,6 +397,7 @@ export const about = { window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked; }); }); + /// #if !BROWSER const autoLaunchElement = about.element.querySelector("#autoLaunch") as HTMLInputElement; autoLaunchElement.addEventListener("change", () => { fetchPost("/api/system/setAutoLaunch", {autoLaunch: autoLaunchElement.checked}, () => { @@ -404,6 +405,7 @@ export const about = { app.setLoginItemSettings({openAtLogin: autoLaunchElement.checked}); }); }); + /// #endif about.element.querySelector("#aboutConfirm").addEventListener("click", () => { const scheme = (about.element.querySelector("#aboutScheme") as HTMLInputElement).value; const host = (about.element.querySelector("#aboutHost") as HTMLInputElement).value;