Skip to content

Commit 53a19fd

Browse files
feat: Bring window to foreground after auth
Bring assistant window to the foreground after successfully fetching the OAuth token when in the "Get Token" screen
1 parent 16bbe20 commit 53a19fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/auth/authHandler.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path');
22
const express = require('express');
3+
const electron = require('electron');
34

45
const app = express();
56
const port = 5754;
@@ -42,6 +43,10 @@ app.get(authHandleRedirectUri, (req, res) => {
4243

4344
// Let the user know that the auth was successful
4445
res.redirect(authSuccessPath);
46+
47+
// Bring assistant window to the foreground
48+
const assistantWindow = electron.remote.getCurrentWindow();
49+
assistantWindow.show();
4550
});
4651

4752
app.listen(port, () => {

0 commit comments

Comments
 (0)