"use strict";
const electron = require("electron");
electron.contextBridge.exposeInMainWorld("electronAPI", {
  appletMessageToParent: (message) => electron.ipcRenderer.invoke("applet-message-to-parent", message),
  closeWindow: () => electron.ipcRenderer.invoke("close-window"),
  focusMainWindow: () => electron.ipcRenderer.invoke("focus-main-window"),
  focusMyWindow: () => electron.ipcRenderer.invoke("focus-my-window"),
  getMySrc: () => electron.ipcRenderer.invoke("get-my-src"),
  selectScreenOrWindow: () => electron.ipcRenderer.invoke("select-screen-or-window"),
  setMyIcon: (icon) => electron.ipcRenderer.invoke("set-my-icon", icon),
  setMyTitle: (title) => electron.ipcRenderer.invoke("set-my-title", title),
  signZomeCallApplet: (request) => electron.ipcRenderer.invoke("sign-zome-call-applet", request)
});
