ionian/preload.ts

7 lines
234 B
TypeScript
Raw Normal View History

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