Added openFile example

This commit is contained in:
lnrdnl committed 2024-02-20 16:04:39 +01:00
1 parent 5ab988dab1
commit f310d94d9f
6 files changed
+58 -13

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { contextBridge, ipcRenderer, IpcRendererEvent } from 'electron'
// Whitelist of valid channels used for IPC communication (Send message from Renderer to Main)
const mainAvailChannels: string[] = ['msgRequestGetVersion', 'msgOpenExternalLink']
const mainAvailChannels: string[] = ['msgRequestGetVersion', 'msgOpenExternalLink', 'msgOpenFile']
const rendererAvailChannels: string[] = []
contextBridge.exposeInMainWorld('mainApi', {