6 lines
236 B
JavaScript
6 lines
236 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron')
|
||
|
|
||
|
contextBridge.exposeInMainWorld('electronAPI', {
|
||
|
playSound: (file) => ipcRenderer.send('play-sound', file),
|
||
|
showTooltip: (text) => ipcRenderer.send('show-tooltip', text)
|
||
|
})
|