mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
code review
This commit is contained in:
parent
5a263bf39d
commit
e22fdaa9f2
@ -94,7 +94,7 @@ var initWorker = function(callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
var path, entry, title;
|
var path, entry;
|
||||||
|
|
||||||
for ( path in µb.remoteBlacklists ) {
|
for ( path in µb.remoteBlacklists ) {
|
||||||
if ( µb.remoteBlacklists.hasOwnProperty(path) === false ) {
|
if ( µb.remoteBlacklists.hasOwnProperty(path) === false ) {
|
||||||
@ -104,12 +104,8 @@ var initWorker = function(callback) {
|
|||||||
if ( entry.off === true ) {
|
if ( entry.off === true ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
title = entry.title;
|
|
||||||
if ( path === µb.userFiltersPath ) {
|
|
||||||
title = vAPI.i18n('1pPageName');
|
|
||||||
}
|
|
||||||
entries[path] = {
|
entries[path] = {
|
||||||
title: title,
|
title: path !== µb.userFiltersPath ? entry.title : vAPI.i18n('1pPageName'),
|
||||||
supportURL: entry.supportURL || ''
|
supportURL: entry.supportURL || ''
|
||||||
};
|
};
|
||||||
countdown += 1;
|
countdown += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user