Browse Source

Change Google login URLs to match more broadly. Spoof FF 80.

pull/3202/head
TheGoddessInari 5 years ago
parent
commit
cd01cec016
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 7
      app/ux/WebView.js

7
app/ux/WebView.js

@ -234,14 +234,13 @@ Ext.define('Hamsket.ux.WebView',{
me.getWebContents().session.webRequest.onBeforeSendHeaders(
{
urls: [
'https://accounts.google.com/signin/',
'https://accounts.google.com/signin/*',
'https://accounts.google.com/ServiceLogin?*'
'https://accounts.google.com/',
'https://accounts.google.com/*'
]
},
(details, callback) => {
details.requestHeaders['User-Agent'] =
'Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0';
'Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0';
callback({ requestHeaders: details.requestHeaders });
}
);

Loading…
Cancel
Save