chore: Initial commit of Opencord base state
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { contextBridge, ipcRenderer } from 'electron';
|
||||
|
||||
contextBridge.exposeInMainWorld('opencord', {
|
||||
platform: process.platform,
|
||||
showNotification: (title: string, body: string) => {
|
||||
ipcRenderer.send('show-notification', { title, body });
|
||||
},
|
||||
setBadgeCount: (count: number) => {
|
||||
ipcRenderer.send('set-badge-count', count);
|
||||
},
|
||||
minimize: () => {
|
||||
ipcRenderer.send('minimize-window');
|
||||
},
|
||||
maximize: () => {
|
||||
ipcRenderer.send('maximize-window');
|
||||
},
|
||||
close: () => {
|
||||
ipcRenderer.send('close-window');
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user