update
This commit is contained in:
6
APP/screen-share/preload.js
Normal file
6
APP/screen-share/preload.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
getSources: () => ipcRenderer.invoke('get-sources'),
|
||||
sendControl: (data) => ipcRenderer.send('remote-control', data),
|
||||
});
|
||||
Reference in New Issue
Block a user