mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 12:52:46 +01:00
Minor code review
This commit is contained in:
parent
2e1cb9be9b
commit
d88ec51b63
@ -149,9 +149,9 @@ const fromNetFilter = async function(rawFilter) {
|
|||||||
const id = messageId++;
|
const id = messageId++;
|
||||||
worker.postMessage({
|
worker.postMessage({
|
||||||
what: 'fromNetFilter',
|
what: 'fromNetFilter',
|
||||||
id: id,
|
id,
|
||||||
compiledFilter: writer.last(),
|
compiledFilter: writer.last(),
|
||||||
rawFilter: rawFilter
|
rawFilter,
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
@ -174,9 +174,9 @@ const fromExtendedFilter = async function(details) {
|
|||||||
|
|
||||||
worker.postMessage({
|
worker.postMessage({
|
||||||
what: 'fromExtendedFilter',
|
what: 'fromExtendedFilter',
|
||||||
id: id,
|
id,
|
||||||
domain: domainFromHostname(hostname),
|
domain: domainFromHostname(hostname),
|
||||||
hostname: hostname,
|
hostname,
|
||||||
ignoreGeneric:
|
ignoreGeneric:
|
||||||
staticNetFilteringEngine.matchRequestReverse(
|
staticNetFilteringEngine.matchRequestReverse(
|
||||||
'generichide',
|
'generichide',
|
||||||
|
Loading…
Reference in New Issue
Block a user