Skip to content

Commit

Permalink
Wrong file version uploaded. v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BowsiePup committed Dec 23, 2023
1 parent 974ff84 commit 2b41c41
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/components/WebAuthHandler.TerminalDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,18 @@ export class WebAuthHandlerDecorator extends TerminalDecorator {

// If there is a popup window already open, send an alert
if (tab._activePopupWindow) {
tab._activePopupWindow.alert('This popup is likey invalid as the active keyboard input prompt has changed.')

this.log('ActiveKIPrompt popup window already open')

tab._activePopupWindow.focus()

if (tab._originalLoadURL === tab._activePopupWindow.webContents.getURL()) {
this.log('Popup window URL has not changed. Updating URL to match new prompt.')
tab._activePopupWindow.loadURL(urls[0])
this.log('Popup window URL has not changed. Reopening URL.')
tab._activePopupWindow.close()
} else {
this.log('Popup window URL has changed. Leaving URL as is.')
return
}

return
}

tab.write('Opening popup window for Browser Authentication')

// @ts-expect-error - Electron BrowserWindow type is not defined
tab._activePopupWindow = new this.platform.electron.remote.BrowserWindow({
width: 800,
Expand Down

0 comments on commit 2b41c41

Please sign in to comment.