Skip to content

Commit 5577503

Browse files
committedJan 17, 2022
win32 exit listener
1 parent 2342431 commit 5577503

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/helpers/browserHelper.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export const openBrowser = (url: string): Promise<void> => {
88
open(url, {
99
wait,
1010
}).then((proc) => {
11-
if (wait && proc.exitCode !== 0) {
11+
if (process.platform === 'win32') {
12+
proc.addListener('exit', () => {
13+
resolve();
14+
});
15+
} else if (wait && proc.exitCode !== 0) {
1216
ui.updateBottomBar('');
1317
console.log(url);
1418
resolve();

0 commit comments

Comments
 (0)
Please sign in to comment.