abrasive / mygov-totp-enroll

Enroll a real TOTP client to access myGov
100 stars 9 forks source link

Fixed electron remote require() support #15

Open olliecheng opened 1 year ago

olliecheng commented 1 year ago

This fixes the code in PR #13 (see also #12) and uses preload.js to offer ipcRenderer within the renderer process. Otherwise, the renderer complains that the require() function does not exist.

Thanks for your work on this.