ref: 支持新api

This commit is contained in:
muwoo 2021-09-27 19:07:49 +08:00
parent 96f2f62787
commit 79b60b89a5

View File

@ -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)
},