Commit 95f4dd89 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

indent

parent 4f94a752
......@@ -48,7 +48,9 @@ LoadExternalReferencesUrlInterceptor::~LoadExternalReferencesUrlInterceptor()
bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{
if (!d->mAllowLoadExternalReference) {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage && !info.requestUrl().isLocalFile() && (info.requestUrl().scheme() != QLatin1String("cid"))) {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage
&& !info.requestUrl().isLocalFile()
&& (info.requestUrl().scheme() != QLatin1String("cid"))) {
return true;
} else if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeMedia) {
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment