mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-29 01:02:47 +08:00
ref: 支持新api
This commit is contained in:
parent
96f2f62787
commit
79b60b89a5
@ -239,6 +239,7 @@ window.rubick = {
|
|||||||
|
|
||||||
removeFeature(code) {
|
removeFeature(code) {
|
||||||
ipcRenderer.sendToHost('removeFeature', {code});
|
ipcRenderer.sendToHost('removeFeature', {code});
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
// 系统
|
// 系统
|
||||||
shellOpenExternal(url) {
|
shellOpenExternal(url) {
|
||||||
@ -253,6 +254,10 @@ window.rubick = {
|
|||||||
return os.type() === 'Windows_NT';
|
return os.type() === 'Windows_NT';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isLinux() {
|
||||||
|
return os.type() === 'Linux';
|
||||||
|
},
|
||||||
|
|
||||||
shellOpenPath(path) {
|
shellOpenPath(path) {
|
||||||
shell.openPath(path)
|
shell.openPath(path)
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user