From 025a8fab68a8d1353157e0abaef16e13d948a3e1 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 31 Aug 2020 14:46:40 -0300 Subject: [PATCH] Fixes #2780 --- app/ux/Auth0.js | 2 +- app/ux/WebView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ux/Auth0.js b/app/ux/Auth0.js index 215909b1..29360ad1 100644 --- a/app/ux/Auth0.js +++ b/app/ux/Auth0.js @@ -273,7 +273,7 @@ Ext.define('Rambox.ux.Auth0', { authWindow.webContents.on('did-start-loading', function(e) { authWindow.webContents.session.webRequest.onBeforeSendHeaders((details, callback) => { - let googleLoginURLs = ['accounts.google.com/signin/oauth', 'accounts.google.com/ServiceLogin'] + let googleLoginURLs = ['accounts.google.com/signin/oauth', 'accounts.google.com/ServiceLogin', 'accounts.google.com/_/lookup/accountlookup'] googleLoginURLs.forEach((loginURL) => { if ( details.url.indexOf(loginURL) > -1 ) details.requestHeaders['User-Agent'] = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0' }) diff --git a/app/ux/WebView.js b/app/ux/WebView.js index 7b50a145..c7229bf8 100644 --- a/app/ux/WebView.js +++ b/app/ux/WebView.js @@ -276,7 +276,7 @@ Ext.define('Rambox.ux.WebView',{ if ( !me.record.get('enabled') ) return; var webview = me.getWebView(); - let googleLoginURLs = ['accounts.google.com/signin', 'accounts.google.com/ServiceLogin', ] + let googleLoginURLs = ['accounts.google.com/signin', 'accounts.google.com/ServiceLogin', 'accounts.google.com/_/lookup/accountlookup'] me.errorCodeLog = [] // Google Analytics Event