1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Merge branch 'falkon-master-useragent'

This commit is contained in:
Juraj Oravec 2022-09-04 22:40:29 +02:00
commit e9d7a62803
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -28,7 +28,7 @@ UserAgentManager::UserAgentManager(QObject* parent)
, m_usePerDomainUserAgent(false)
{
m_defaultUserAgent = QWebEngineProfile::defaultProfile()->httpUserAgent();
m_defaultUserAgent.replace(QRegularExpression(QSL("QtWebEngine/[^\\s]+")), QSL("Falkon/%1").arg(Qz::VERSION));
m_defaultUserAgent.replace(QRegularExpression(QSL("(QtWebEngine/[^\\s]+)")), QSL("Falkon/%1 \\1").arg(Qz::VERSION));
}
void UserAgentManager::loadSettings()