mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
14 lines
431 B
JavaScript
14 lines
431 B
JavaScript
|
const { contextBridge, remote, desktopCapturer } = require("electron");
|
||
|
const currentWindow = remote.getCurrentWindow();
|
||
|
contextBridge.exposeInMainWorld("electron", {
|
||
|
window: {
|
||
|
show: () => currentWindow.show(),
|
||
|
hide: () => currentWindow.hide(),
|
||
|
minimize: () => currentWindow.minimize(),
|
||
|
maximize: () => currentWindow.maximize(),
|
||
|
},
|
||
|
version: process.versions.electron,
|
||
|
desktopCapturer: desktopCapturer,
|
||
|
|
||
|
});
|