mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-26 22:52:48 +08:00
✨ 支持新的api
This commit is contained in:
parent
c49b55992c
commit
343079d24f
@ -145,4 +145,12 @@ window.rubick = {
|
||||
shellShowItemInFolder: path => {
|
||||
ipcSend("shellShowItemInFolder", { path });
|
||||
},
|
||||
|
||||
redirect: (label, payload) => {
|
||||
// todo
|
||||
},
|
||||
|
||||
shellBeep: () => {
|
||||
ipcSend("shellBeep")
|
||||
},
|
||||
};
|
||||
|
@ -249,6 +249,11 @@ export const API: any = {
|
||||
shell.showItemInFolder(data.path);
|
||||
return true;
|
||||
},
|
||||
|
||||
shellBeep() {
|
||||
shell.beep();
|
||||
return true;
|
||||
},
|
||||
};
|
||||
|
||||
export default (mainWindow: BrowserWindow) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user