mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
List name for user filters come from i18n
This commit is contained in:
parent
0a89e5827a
commit
5c39998de4
@ -75,7 +75,6 @@ var initWorker = function(callback) {
|
||||
|
||||
var entries = Object.create(null);
|
||||
var countdown = 0;
|
||||
var path, entry;
|
||||
|
||||
var onListLoaded = function(details) {
|
||||
var entry = entries[details.path];
|
||||
@ -95,6 +94,7 @@ var initWorker = function(callback) {
|
||||
};
|
||||
|
||||
var µb = µBlock;
|
||||
var path, entry, title;
|
||||
|
||||
for ( path in µb.remoteBlacklists ) {
|
||||
if ( µb.remoteBlacklists.hasOwnProperty(path) === false ) {
|
||||
@ -104,8 +104,12 @@ var initWorker = function(callback) {
|
||||
if ( entry.off === true ) {
|
||||
continue;
|
||||
}
|
||||
title = entry.title;
|
||||
if ( path === µb.userFiltersPath ) {
|
||||
title = vAPI.i18n('1pPageName');
|
||||
}
|
||||
entries[path] = {
|
||||
title: entry.title,
|
||||
title: title,
|
||||
supportURL: entry.supportURL || ''
|
||||
};
|
||||
countdown += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user