mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 04:50:28 +00:00
fix: change user agent to Firefox on google to enable loging in
This commit is contained in:
parent
03769fbb6e
commit
803b287766
@ -251,6 +251,13 @@ Rectangle {
|
|||||||
property QtObject defaultProfile: WebEngineProfile {
|
property QtObject defaultProfile: WebEngineProfile {
|
||||||
storageName: "Profile"
|
storageName: "Profile"
|
||||||
offTheRecord: false
|
offTheRecord: false
|
||||||
|
httpUserAgent: {
|
||||||
|
if (addressBar.text.indexOf("google.") > -1) {
|
||||||
|
// Google doesn't let you connect if the user agent is Chrome-ish and doesn't satisfy some sort of hidden requirement
|
||||||
|
return "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
useForGlobalCertificateVerification: true
|
useForGlobalCertificateVerification: true
|
||||||
userScripts: [
|
userScripts: [
|
||||||
WebEngineScript {
|
WebEngineScript {
|
||||||
@ -264,6 +271,7 @@ Rectangle {
|
|||||||
property QtObject otrProfile: WebEngineProfile {
|
property QtObject otrProfile: WebEngineProfile {
|
||||||
offTheRecord: true
|
offTheRecord: true
|
||||||
persistentCookiesPolicy: WebEngineProfile.NoPersistentCookies
|
persistentCookiesPolicy: WebEngineProfile.NoPersistentCookies
|
||||||
|
httpUserAgent: defaultProfile.httpUserAgent
|
||||||
userScripts: [
|
userScripts: [
|
||||||
WebEngineScript {
|
WebEngineScript {
|
||||||
injectionPoint: WebEngineScript.DocumentCreation
|
injectionPoint: WebEngineScript.DocumentCreation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user