fix typo on ipcMain listeners

This commit is contained in:
zxawry 2019-10-24 21:35:32 +01:00 committed by Sean Yesmunt
parent 7d35e998ec
commit f0f9fb8f0a

View file

@ -329,14 +329,14 @@ ipcMain.on('get-password', event => {
ipcMain.on('set-password', (event, password) => {
if (password || password === '') {
keytar.setPassword('LBRY', 'wallet_password', password).then(res => {
event.sender.send('get-password-response', res);
event.sender.send('set-password-response', res);
});
}
});
ipcMain.on('delete-password', (event, password) => {
keytar.deletePassword('LBRY', 'wallet_password', password).then(res => {
event.sender.send('get-password-response', res);
ipcMain.on('delete-password', event => {
keytar.deletePassword('LBRY', 'wallet_password').then(res => {
event.sender.send('delete-password-response', res);
});
});