Skip to content

Commit

Permalink
Update preload.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillfulElectro authored Jun 10, 2024
1 parent 8e4cad4 commit b71d161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})

0 comments on commit b71d161

Please sign in to comment.