ionian/preload.ts
2021-02-22 23:09:59 +09:00

7 lines
234 B
TypeScript

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