mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
AdBlockManager: Disable blocking on view-source scheme
This commit is contained in:
parent
0ff1ebc584
commit
394221c5c0
@ -1,6 +1,6 @@
|
||||
/* ============================================================
|
||||
* Falkon - Qt web browser
|
||||
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -387,9 +387,8 @@ bool AdBlockManager::isEnabled() const
|
||||
|
||||
bool AdBlockManager::canRunOnScheme(const QString &scheme) const
|
||||
{
|
||||
return !(scheme == QLatin1String("file") || scheme == QLatin1String("qrc")
|
||||
|| scheme == QLatin1String("falkon") || scheme == QLatin1String("data")
|
||||
|| scheme == QLatin1String("abp"));
|
||||
return !(scheme == QL1S("file") || scheme == QL1S("qrc") || scheme == QL1S("view-source")
|
||||
|| scheme == QL1S("falkon") || scheme == QL1S("data") || scheme == QL1S("abp"));
|
||||
}
|
||||
|
||||
bool AdBlockManager::canBeBlocked(const QUrl &url) const
|
||||
|
Loading…
Reference in New Issue
Block a user