diff --git a/static/preload.js b/static/preload.js index 7a81156331a3497d42b0eb1ab8757101bb5ba475..0f794d867ed3a5627fac229601bdfa651f2dfdb9 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) },