chore: Initial commit of Opencord base state

This commit is contained in:
Jannis Braun
2026-02-18 02:49:21 +01:00
commit 4fd17084a5
124 changed files with 17955 additions and 0 deletions
+20
View File
@@ -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');
},
});