adding api changes to error properly

This commit is contained in:
talksik
2022-03-17 23:24:05 -04:00
parent 4d0a75af6e
commit 9613e2b2cf
3 changed files with 22 additions and 25 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ const electronAPI = {
initiateLogin() {
ipcRenderer.send(Channels.ACTIVATE_LOG_IN);
},
receiveTokens(callback: any) {
ipcRenderer.on(Channels.AUTH_TOKENS, callback);
receiveTokens(channel: Channels, func: any) {
ipcRenderer.on(channel, (event, ...args) => func(...args));
},
},
batteryApi: {},