Files
burrow-client/app/captchaPreload.js
T

9 lines
276 B
JavaScript

"use strict";
const {contextBridge, ipcRenderer} = require("electron");
// for the server's /captcha page in its window (main.js): hands the answer back.
contextBridge.exposeInMainWorld("burrowCaptcha", {
done: token => ipcRenderer.send("captchaDone", String(token)),
});