6 lines
229 B
JavaScript
6 lines
229 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('darkMode', {
|
|
toggle: () => ipcRenderer.invoke('dark-mode:toggle'),
|
|
system: () => ipcRenderer.invoke('dark-mode:system')
|
|
})
|