Skip to content

Commit

Permalink
Update chrome version in user agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Feb 11, 2025
1 parent ceb719a commit 2a485d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gui/src/qml/PSNLoginDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ DialogView {
}
onCertificateError: console.error(error.description);
}", webView, "webView");
web.profile.httpUserAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36'
web.url = Chiaki.psnLoginUrl();
web.profile.httpUserAgent = web.profile.httpUserAgent.replace(/\bQtWebEngine[^ ]*/, '')
web.profile.httpUserAgent = web.profile.httpUserAgent.replace(/\bChrome[^ ]*/, 'Chrome/135.0.0.0 ') web.url = Chiaki.psnLoginUrl();
web.anchors.fill = webView;
} catch (error) {
console.error('Create webengine view failed with error:' + error);
Expand Down
3 changes: 2 additions & 1 deletion gui/src/qml/PSNTokenDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ DialogView {
}
onCertificateError: console.error(error.description);
}", webView, "webView");
web.profile.httpUserAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36'
web.profile.httpUserAgent = web.profile.httpUserAgent.replace(/\bQtWebEngine[^ ]*/, '')
web.profile.httpUserAgent = web.profile.httpUserAgent.replace(/\bChrome[^ ]*/, 'Chrome/135.0.0.0 ')
web.url = Chiaki.psnLoginUrl();
web.anchors.fill = webView;
} catch (error) {
Expand Down

0 comments on commit 2a485d1

Please sign in to comment.