mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Better diff output
This commit is contained in:
parent
5dd91211ae
commit
6703ede9e8
@ -182,7 +182,13 @@ async function compare(results) {
|
|||||||
const a = before.get(i);
|
const a = before.get(i);
|
||||||
const b = after.get(i);
|
const b = after.get(i);
|
||||||
if ( a.r === b.r ) { continue; }
|
if ( a.r === b.r ) { continue; }
|
||||||
diffs.push([ i, { before: a, after: b } ]);
|
diffs.push([ i, {
|
||||||
|
type: a.type,
|
||||||
|
url: a.url,
|
||||||
|
originURL: a.originURL,
|
||||||
|
before: { r: a.r, f: a.f, t: a.t },
|
||||||
|
after: { r: b.r, f: b.f, t: b.t },
|
||||||
|
}]);
|
||||||
}
|
}
|
||||||
return diffs;
|
return diffs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user