mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-18 06:39:44 +00:00
8 lines
353 B
JavaScript
8 lines
353 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron');
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
togglePip: (isPip) => ipcRenderer.send('toggle-pip', isPip),
|
|
onPipItem: (callback) => ipcRenderer.on('pip-item', callback),
|
|
// Add other safe APIs here as needed
|
|
snapshot: () => ipcRenderer.send('snapshot'), // Example for snapshot
|
|
}); |