diff --git a/public/preload.js b/public/preload.js index 42a39ee..e02d2f8 100644 --- a/public/preload.js +++ b/public/preload.js @@ -145,4 +145,12 @@ window.rubick = { shellShowItemInFolder: path => { ipcSend("shellShowItemInFolder", { path }); }, + + redirect: (label, payload) => { + // todo + }, + + shellBeep: () => { + ipcSend("shellBeep") + }, }; diff --git a/src/main/common/api.ts b/src/main/common/api.ts index 7fb7b09..32187c1 100644 --- a/src/main/common/api.ts +++ b/src/main/common/api.ts @@ -249,6 +249,11 @@ export const API: any = { shell.showItemInFolder(data.path); return true; }, + + shellBeep() { + shell.beep(); + return true; + }, }; export default (mainWindow: BrowserWindow) => {