2021-11-07 14:12:42 +00:00
|
|
|
const { contextBridge, remote } = require("electron");
|
2021-11-01 10:47:32 +00:00
|
|
|
const currentWindow = remote.getCurrentWindow();
|
2021-11-07 14:12:42 +00:00
|
|
|
const {getDisplayMediaSelector} = require('./capturer')
|
|
|
|
const ArmCord = require("./ArmCord.js");
|
2021-11-01 16:57:03 +00:00
|
|
|
const version = require("../package.json").version;
|
2021-11-01 10:47:32 +00:00
|
|
|
contextBridge.exposeInMainWorld("electron", {
|
|
|
|
window: {
|
|
|
|
show: () => currentWindow.show(),
|
|
|
|
hide: () => currentWindow.hide(),
|
|
|
|
minimize: () => currentWindow.minimize(),
|
|
|
|
maximize: () => currentWindow.maximize(),
|
2021-11-01 16:57:03 +00:00
|
|
|
on : () => currentWindow.on(),
|
2021-11-01 10:47:32 +00:00
|
|
|
},
|
2021-11-01 16:57:03 +00:00
|
|
|
electron: process.versions.electron,
|
|
|
|
version: version,
|
2021-11-07 14:12:42 +00:00
|
|
|
ArmCord: ArmCord,
|
|
|
|
getDisplayMediaSelector: getDisplayMediaSelector,
|
2021-11-01 10:47:32 +00:00
|
|
|
|
|
|
|
});
|