mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-22 18:22:53 +08:00
ref: 支持新api
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user