mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Support siyuan:// protocol on macOS https://github.com/siyuan-note/siyuan/issues/12271
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
9366b0f073
commit
59950dde41
3 changed files with 9 additions and 4 deletions
|
|
@ -387,10 +387,7 @@ const initMainWindow = () => {
|
|||
});
|
||||
|
||||
currentWindow.webContents.on("did-finish-load", () => {
|
||||
let siyuanOpenURL;
|
||||
if ("win32" === process.platform || "linux" === process.platform) {
|
||||
siyuanOpenURL = process.argv.find((arg) => arg.startsWith("siyuan://"));
|
||||
}
|
||||
let siyuanOpenURL = process.argv.find((arg) => arg.startsWith("siyuan://"));
|
||||
if (siyuanOpenURL) {
|
||||
if (currentWindow.isMinimized()) {
|
||||
currentWindow.restore();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue