Skip to content

Commit 61d5a8d

Browse files
Rename api
1 parent c5b5964 commit 61d5a8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ if (!amMainInstance) {
587587
}
588588

589589
ipcMain.handle(
590-
'open-file',
590+
'select-application',
591591
() =>
592592
dialog.showOpenDialogSync({
593593
properties: ['openFile', 'treatPackageAsDirectory'],

src/preload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {contextBridge, ipcRenderer} from 'electron';
22

3-
contextBridge.exposeInMainWorld('nativeFile', {
4-
open: () => ipcRenderer.invoke('open-file'),
3+
contextBridge.exposeInMainWorld('desktopApi', {
4+
selectApplication: () => ipcRenderer.invoke('select-application'),
55
});

0 commit comments

Comments
 (0)