Skip to content

Commit 77d7c0d

Browse files
committed
fix multipopup
1 parent 1fe4692 commit 77d7c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ app.on('ready', function () {
7070
if(aInfo && loginCount==0){ // loginCount>0 means proxy was not autheticated
7171
callback(aInfo.id,aInfo.password);
7272
}else {
73+
if(proxyPopUp) return // discard multiple popups
7374
reservedLoginCallback = callback
74-
if(proxyPopUp) proxyPopUp.close() // discard multiple popups
7575
proxyPopUp = new BrowserWindow({
7676
width: 400,
7777
height: 200,

0 commit comments

Comments
 (0)