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