Sandbox all browser contexts

This commit is contained in:
Max Goodhart
2020-10-08 22:54:12 -07:00
parent 4726954cb2
commit 1e25b0622c
6 changed files with 17 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
import { ipcRenderer, contextBridge } from 'electron'
contextBridge.exposeInMainWorld('streamwall', {
openDevTools: () => ipcRenderer.send('devtools-overlay'),
onState: (handler) => ipcRenderer.on('state', (ev, state) => handler(state)),
})