5 lines
208 B
JavaScript
5 lines
208 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
takeScreenshot: () => ipcRenderer.invoke('take-screenshot', window.devicePixelRatio)
|
|
})
|