Skip to content

Commit f061dfd

Browse files
yyarmanosim
andauthored
Capture callback by will-navigate event (#525)
Co-authored-by: Manos Konstantinidis <manosim@users.noreply.github.com>
1 parent 42e4fd0 commit f061dfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/auth.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export const authGitHub = (
6565
event.preventDefault();
6666
handleCallback(url);
6767
});
68+
69+
authWindow.webContents.on('will-navigate', (event, url) => {
70+
event.preventDefault();
71+
handleCallback(url);
72+
});
6873
});
6974
};
7075

0 commit comments

Comments
 (0)