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