Fix Exception when dropping .torrent file onto Dock icon when app is closed
Fixes #154
This commit is contained in:
@@ -246,6 +246,8 @@ function dispatch (action, ...args) {
|
||||
}
|
||||
|
||||
function setupIpc () {
|
||||
ipcRenderer.send('ipcReady')
|
||||
|
||||
ipcRenderer.on('dispatch', function (e, action, ...args) {
|
||||
dispatch(action, ...args)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user