diff --git a/src/main/index.ts b/src/main/index.ts index 9e52278..abd7329 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -150,7 +150,7 @@ function onAppReady () { } case exitCodeAuthenticationError: { isLoginWindowOpen = true - const window = new BrowserWindow() + const window = new BrowserWindow({ title: 'Login to put.io' }) window.removeMenu() var gotToken = false window.on('close', async () => { @@ -164,6 +164,9 @@ function onAppReady () { gotToken ? startApp() : quitApp() } }) + window.on('page-title-updated', (event) => { + event.preventDefault() + }) window.webContents.on('will-redirect', async (event, url) => { if (url.startsWith('http://localhost')) { event.preventDefault()