Skip to content

Commit

Permalink
Move auth window to top to make sue its initialized
Browse files Browse the repository at this point in the history
Issue #5

Signed-off-by: Jochen <rothjochen@gmail.com>
  • Loading branch information
ochorocho committed Jun 11, 2020
1 parent c717ccd commit 2e39c2e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions login.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ const login = context => {
return new Promise((resolve, reject) => {
const credentials = []

const authWindow = new BrowserWindow({
'use-content-size': true,
alwaysOnTop: true,
autoHideMenuBar: false,
webPreferences: {
nodeIntegration: false
}
})

/**
* Register nc:// protocol
*/
Expand All @@ -33,15 +42,6 @@ const login = context => {
console.error(error)
})

const authWindow = new BrowserWindow({
'use-content-size': true,
alwaysOnTop: true,
autoHideMenuBar: false,
webPreferences: {
nodeIntegration: false
}
})

const extraHeaders = {
userAgent: 'KapScreenRecorder',
extraHeaders: 'OCS-APIREQUEST: true\n ACCEPT_LANGUAGE: "en-US"'
Expand Down

0 comments on commit 2e39c2e

Please sign in to comment.