Commit d07c71fc authored by Laurent Montel's avatar Laurent Montel 😁

Exclude more type

parent 2a3a0358
......@@ -46,10 +46,18 @@ LoadExternalReferencesUrlInterceptor::~LoadExternalReferencesUrlInterceptor()
bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{
/*
if (info.navigationType() == QWebEngineUrlRequestInfo::NavigationTypeLink) {
return true;
}
*/
if (!d->mAllowLoadExternalReference) {
//TODO add more resource type
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage && !info.requestUrl().isLocalFile()) {
return true;
} else if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeMedia) {
return true;
}
}
return false;
......
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