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

Add more code

parent f6b79afc
......@@ -71,6 +71,15 @@ bool AdblockManager::interceptRequest(const QUrl &url)
const QString host = url.host().toLower();
const QString scheme = url.scheme().toLower();
if (!canRunOnScheme(scheme)) {
return false;
}
//TODO
return false;
}
bool AdblockManager::canRunOnScheme(const QString &scheme) const
{
return !(scheme == QLatin1String("file"));
}
......@@ -37,6 +37,7 @@ public Q_SLOTS:
void reloadConfig();
private:
bool canRunOnScheme(const QString &scheme) const;
bool mEnabled;
};
}
......
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