mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-28 08:22:48 +08:00
ref: 支持新api
This commit is contained in:
parent
96f2f62787
commit
79b60b89a5
@ -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)
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user