mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-27 15:22:46 +08:00
✨ 支持新的api
This commit is contained in:
parent
c49b55992c
commit
343079d24f
@ -145,4 +145,12 @@ window.rubick = {
|
|||||||
shellShowItemInFolder: path => {
|
shellShowItemInFolder: path => {
|
||||||
ipcSend("shellShowItemInFolder", { path });
|
ipcSend("shellShowItemInFolder", { path });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
redirect: (label, payload) => {
|
||||||
|
// todo
|
||||||
|
},
|
||||||
|
|
||||||
|
shellBeep: () => {
|
||||||
|
ipcSend("shellBeep")
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user