mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Don't add user stylesheet script when usercss is empty
This commit is contained in:
parent
1fe3bed362
commit
00df74bd64
@ -1089,6 +1089,9 @@ void MainApplication::setUserStyleSheet(const QString &filePath)
|
|||||||
m_webProfile->scripts()->remove(oldScript);
|
m_webProfile->scripts()->remove(oldScript);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (userCss.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
QWebEngineScript script;
|
QWebEngineScript script;
|
||||||
script.setName(name);
|
script.setName(name);
|
||||||
script.setInjectionPoint(QWebEngineScript::DocumentReady);
|
script.setInjectionPoint(QWebEngineScript::DocumentReady);
|
||||||
|
Loading…
Reference in New Issue
Block a user