1
0
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:
Raymond Hill 2023-01-30 11:14:07 -05:00
parent 2e1cb9be9b
commit d88ec51b63
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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',