ionian/preload.ts
2023-06-01 14:18:53 +09:00

8 lines
251 B
TypeScript

import { contextBridge, ipcRenderer } from "electron";
contextBridge.exposeInMainWorld("electron", {
passwordReset: async (username: string, toPw: string) => {
return await ipcRenderer.invoke("reset_password", username, toPw);
},
});