feat: add compatibility mode menu item
This commit is contained in:
parent
4adce2e801
commit
6b064f3d17
|
@ -215,7 +215,13 @@ Rectangle {
|
||||||
property QtObject defaultProfile: WebEngineProfile {
|
property QtObject defaultProfile: WebEngineProfile {
|
||||||
storageName: "Profile"
|
storageName: "Profile"
|
||||||
offTheRecord: false
|
offTheRecord: false
|
||||||
httpUserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
|
httpUserAgent: {
|
||||||
|
if (browserHeader.browserSettings.compatibilityMode) {
|
||||||
|
// 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 {
|
||||||
|
|
Loading…
Reference in New Issue