From 79b60b89a543773ab05392fd2b90db04ae5020ef Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Mon, 27 Sep 2021 19:07:49 +0800 Subject: [PATCH] =?UTF-8?q?ref:=20=E6=94=AF=E6=8C=81=E6=96=B0api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/preload.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/preload.js b/static/preload.js index 7a81156..0f794d8 100644 --- a/static/preload.js +++ b/static/preload.js @@ -239,6 +239,7 @@ window.rubick = { removeFeature(code) { ipcRenderer.sendToHost('removeFeature', {code}); + return true; }, // 系统 shellOpenExternal(url) { @@ -253,6 +254,10 @@ window.rubick = { return os.type() === 'Windows_NT'; }, + isLinux() { + return os.type() === 'Linux'; + }, + shellOpenPath(path) { shell.openPath(path) },