2023-07-29 16:23:38 +02:00
|
|
|
import { contextBridge, ipcRenderer } from "electron";
|
2023-07-29 14:29:14 +02:00
|
|
|
|
2023-07-30 00:14:20 +02:00
|
|
|
/* Context bridge */
|
2023-07-29 19:23:18 +02:00
|
|
|
contextBridge.exposeInMainWorld("internals", {
|
|
|
|
ffmpeg: () => ipcRenderer.invoke("ffmpeg"),
|
2023-07-29 20:20:55 +02:00
|
|
|
argv: () => ipcRenderer.invoke("argv"),
|
2023-07-30 00:14:20 +02:00
|
|
|
allowedExtensions: () => ipcRenderer.invoke("allowedExtensions"),
|
2023-07-30 01:40:06 +02:00
|
|
|
askFile: () => ipcRenderer.invoke("askFile"),
|
|
|
|
mergeAudio: (file: string) => ipcRenderer.invoke("mergeAudio", file),
|
2023-07-30 00:14:20 +02:00
|
|
|
exit: () => ipcRenderer.invoke("exit"),
|
2023-07-29 14:29:14 +02:00
|
|
|
});
|