1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

[PM-3682] Remove ipcRenderer from login-approval (#6838)

This commit is contained in:
Daniel García
2023-11-10 16:56:14 +01:00
committed by GitHub
parent 49103cdda4
commit f36a41b5ca
2 changed files with 13 additions and 7 deletions

View File

@@ -3,4 +3,11 @@ import { ipcRenderer } from "electron";
export default {
getHcaptchaAccessibilityCookie: (): Promise<[string]> =>
ipcRenderer.invoke("getCookie", { url: "https://www.hcaptcha.com/", name: "hc_accessibility" }),
loginRequest: (alertTitle: string, alertBody: string, buttonText: string): Promise<void> =>
ipcRenderer.invoke("loginRequest", {
alertTitle,
alertBody,
buttonText,
}),
};