Commit 7a25c61a authored by Laurent Montel's avatar Laurent Montel 😁

Don't block local image

parent ddc44a3b
......@@ -48,7 +48,7 @@ void LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequest
{
if (!d->mAllowLoadExternalReference) {
//TODO add more resource type
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage) {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage && !info.requestUrl().isLocalFile()) {
info.block(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