log command line arguments
This commit is contained in:
@@ -24,6 +24,9 @@ app.on('ready', function () {
|
||||
})
|
||||
|
||||
app.on('ipcReady', function () {
|
||||
if (argv.length) {
|
||||
windows.main.send('log', 'command line args:', argv)
|
||||
}
|
||||
argv.forEach(function (torrentId) {
|
||||
windows.main.send('dispatch', 'onOpen', torrentId)
|
||||
})
|
||||
|
||||
@@ -257,6 +257,8 @@ function jumpToTime (time) {
|
||||
function setupIpc () {
|
||||
ipcRenderer.send('ipcReady')
|
||||
|
||||
ipcRenderer.on('log', (e, ...args) => console.log(...args))
|
||||
|
||||
ipcRenderer.on('dispatch', (e, ...args) => dispatch(...args))
|
||||
|
||||
ipcRenderer.on('showOpenTorrentAddress', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user