From c204b7a82c353089917fe4c3acba31207e163f49 Mon Sep 17 00:00:00 2001 From: Borewit Date: Wed, 15 May 2019 19:54:13 +0200 Subject: [PATCH] onAppOpen seems to be no longer in use. --- src/main/index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 9e035cc2..04ad2bdd 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -168,19 +168,6 @@ function onOpen (e, torrentId) { } } -function onAppOpen (newArgv) { - newArgv = sliceArgv(newArgv) - - if (app.ipcReady) { - log('Second app instance opened, but was prevented:', newArgv) - windows.main.show() - - processArgv(newArgv) - } else { - argv.push(...newArgv) - } -} - // Remove leading args. // Production: 1 arg, eg: /Applications/WebTorrent.app/Contents/MacOS/WebTorrent // Development: 2 args, eg: electron .