1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00

Built-in redirect token none must be seen as valid

Related feedback:
- 1727585faa (commitcomment-43787843)
This commit is contained in:
Raymond Hill 2020-11-02 04:52:47 -05:00
parent f76471f56b
commit 5468b92643
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -790,7 +790,9 @@ RedirectEngine.prototype.loadBuiltinResources = function() {
/******************************************************************************/
RedirectEngine.prototype.getResourceDetails = function() {
const out = new Map();
const out = new Map([
[ 'none', { canInject: false, canRedirect: true, aliasOf: '' } ],
]);
for ( const [ name, entry ] of this.resources ) {
out.set(name, {
canInject: typeof entry.data === 'string',