mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-16 07:28:44 +08:00
✨ 支持新的api
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user