1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Make getByName() return an dummy Tracker object

Related issue:
- https://www.reddit.com/r/uBlockOrigin/comments/o44syz/ublock_origin_136_announcement_thread/h4big1n/
This commit is contained in:
Raymond Hill 2021-07-07 10:52:16 -04:00
parent f2899c1f8a
commit d3b1ca333c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -24,9 +24,6 @@
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
const noopfn = function() {
};
const noopnullfn = function() {
return null;
};
//
const Tracker = function() {
};
@ -64,7 +61,9 @@
ga.create = function() {
return new Tracker();
};
ga.getByName = noopnullfn;
ga.getByName = function() {
return new Tracker();
};
ga.getAll = function() {
return [];
};