mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
17 lines
645 B
TypeScript
17 lines
645 B
TypeScript
|
|
||
|
import { contextBridge, ipcRenderer } from 'electron';
|
||
|
import {getDisplayMediaSelector} from './capturer';
|
||
|
|
||
|
contextBridge.exposeInMainWorld("armcord", {
|
||
|
window: {
|
||
|
show: () => ipcRenderer.sendSync('win-show'),
|
||
|
hide: () => ipcRenderer.sendSync('win-hide'),
|
||
|
minimize: () => ipcRenderer.sendSync('win-minimize'),
|
||
|
maximize: () => ipcRenderer.sendSync('win-maximize'),
|
||
|
},
|
||
|
electron: process.versions.electron,
|
||
|
version: ipcRenderer.sendSync('get-app-version', 'app-version'),
|
||
|
getDisplayMediaSelector: getDisplayMediaSelector,
|
||
|
splashEnd: () => ipcRenderer.sendSync('splashEnd'),
|
||
|
channel: ipcRenderer.sendSync('channel')
|
||
|
});
|