mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding local file protocol
This commit is contained in:
parent
1ef8e3fce3
commit
1fb1c9e81a
10 changed files with 42 additions and 54 deletions
|
@ -106,8 +106,6 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
getVersion: () => ipcRenderer.invoke("getVersion"),
|
||||
getDefaultDownloadsPath: () => ipcRenderer.invoke("getDefaultDownloadsPath"),
|
||||
openExternal: (src: string) => ipcRenderer.invoke("openExternal", src),
|
||||
imagePathToBase64: (filePath: string) =>
|
||||
ipcRenderer.invoke("imagePathToBase64", filePath),
|
||||
showOpenDialog: (options: Electron.OpenDialogOptions) =>
|
||||
ipcRenderer.invoke("showOpenDialog", options),
|
||||
platform: process.platform,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue