支持新的api

This commit is contained in:
muwoo 2022-05-09 11:04:23 +08:00
parent c49b55992c
commit 343079d24f
2 changed files with 13 additions and 0 deletions

View File

@ -145,4 +145,12 @@ window.rubick = {
shellShowItemInFolder: path => { shellShowItemInFolder: path => {
ipcSend("shellShowItemInFolder", { path }); ipcSend("shellShowItemInFolder", { path });
}, },
redirect: (label, payload) => {
// todo
},
shellBeep: () => {
ipcSend("shellBeep")
},
}; };

View File

@ -249,6 +249,11 @@ export const API: any = {
shell.showItemInFolder(data.path); shell.showItemInFolder(data.path);
return true; return true;
}, },
shellBeep() {
shell.beep();
return true;
},
}; };
export default (mainWindow: BrowserWindow) => { export default (mainWindow: BrowserWindow) => {