From b71d161a20a11d161bf3c606ae0682cbd8fac7e9 Mon Sep 17 00:00:00 2001 From: ElectroMutex <97535877+SkillfulElectro@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:23:39 +0330 Subject: [PATCH] Update preload.js --- preload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preload.js b/preload.js index a375449..e608788 100644 --- a/preload.js +++ b/preload.js @@ -10,6 +10,9 @@ contextBridge.exposeInMainWorld('Backend', { win_center: () => ipcRenderer.send('win-center'), win_size: (height , width , animate) => ipcRenderer.send('win-size' , height , width , animate), win_icon : (ic_path) => ipcRenderer.send('win-icon' , ic_path), + + getCameraAccess: () => ipcRenderer.invoke('get-camera-access'), + getMicrophoneAccess: () => ipcRenderer.invoke('get-microphone-access'), // experimental extension : async (value) => await ipcRenderer.invoke('extension' , value), })