2023-06-01 14:18:53 +09:00
|
|
|
import { contextBridge, ipcRenderer } from "electron";
|
2021-01-16 21:22:30 +09:00
|
|
|
|
2023-06-01 14:18:53 +09:00
|
|
|
contextBridge.exposeInMainWorld("electron", {
|
|
|
|
passwordReset: async (username: string, toPw: string) => {
|
|
|
|
return await ipcRenderer.invoke("reset_password", username, toPw);
|
|
|
|
},
|
|
|
|
});
|