mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +02:00
this fixes #536
This commit is contained in:
parent
2509bceaff
commit
b190f0b183
@ -78,15 +78,20 @@ var initWorker = function(callback) {
|
|||||||
|
|
||||||
var onListLoaded = function(details) {
|
var onListLoaded = function(details) {
|
||||||
var entry = entries[details.path];
|
var entry = entries[details.path];
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/536
|
||||||
|
// Use path string when there is no filter list title.
|
||||||
|
|
||||||
worker.postMessage({
|
worker.postMessage({
|
||||||
what: 'setList',
|
what: 'setList',
|
||||||
details: {
|
details: {
|
||||||
path: details.path,
|
path: details.path,
|
||||||
title: entry.title || '',
|
title: entry.title || details.path,
|
||||||
supportURL: entry.supportURL,
|
supportURL: entry.supportURL,
|
||||||
content: details.content
|
content: details.content
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
countdown -= 1;
|
countdown -= 1;
|
||||||
if ( countdown === 0 ) {
|
if ( countdown === 0 ) {
|
||||||
callback();
|
callback();
|
||||||
|
Loading…
Reference in New Issue
Block a user