mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01: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:
parent
f2899c1f8a
commit
d3b1ca333c
@ -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 [];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user