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