Skip to content

Commit

Permalink
Merge pull request #913 from RocketChat/fix/show-window-on-second-ins…
Browse files Browse the repository at this point in the history
…tance-running

[FIX] Show window on second instance running
  • Loading branch information
tassoevan authored Oct 6, 2018
2 parents 94b92d1 + 88a106d commit f88b55f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ const parseProtocolUrls = (args) =>
const addServers = (protocolUrls) => parseProtocolUrls(protocolUrls)
.forEach((serverUrl) => addServer(serverUrl));

const isSecondInstance = app.makeSingleInstance((argv) => {
const isSecondInstance = app.makeSingleInstance(async(argv) => {
(await getMainWindow()).show();
addServers(argv.slice(2));
});

Expand Down

0 comments on commit f88b55f

Please sign in to comment.