"use strict";
const electron = require("electron");
electron.contextBridge.exposeInMainWorld("electronAPI", {
  onProgressUpdate: (callback) => electron.ipcRenderer.on("loading-progress-update", callback),
  lairSetupRequired: () => electron.ipcRenderer.invoke("lair-setup-required"),
  launch: (password) => electron.ipcRenderer.invoke("launch", password),
  exit: () => electron.ipcRenderer.invoke("exit")
});
