2023-11-14 16:40:15 -05:00
|
|
|
const electron = require("electron");
|
|
|
|
|
|
|
|
electron.contextBridge.exposeInMainWorld("minimizeWindow", function () {
|
|
|
|
return electron.ipcRenderer.invoke("minimize");
|
|
|
|
});
|
|
|
|
|
|
|
|
electron.contextBridge.exposeInMainWorld("closeWindow", function () {
|
|
|
|
return electron.ipcRenderer.invoke("close");
|
|
|
|
});
|
|
|
|
|
|
|
|
electron.contextBridge.exposeInMainWorld("game", {
|
|
|
|
"isInstalled": function () {
|
|
|
|
return electron.ipcRenderer.invoke("is-installed");
|
|
|
|
},
|
|
|
|
"install": function () {
|
|
|
|
return electron.ipcRenderer.invoke("install");
|
|
|
|
}
|
|
|
|
});
|