const { contextBridge, ipcRenderer } = require("electron"); contextBridge.exposeInMainWorld("pop", { onData: (cb) => ipcRenderer.on("site-info", (_e, d) => cb(d)), close: () => ipcRenderer.invoke("close-site-info"), resize: (h) => ipcRenderer.invoke("popover-resize", h), // Live switcher: flip the active tab between BCNR and ICANN for this host, // optionally remembering the choice per-name / per-TLD. switchTo: (choice, remember) => ipcRenderer.invoke("collision-switch", { choice, remember }), });