Update detector report URL path
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -41,7 +41,7 @@ export class CookieDetector implements Detector {
|
||||
private originalDescriptor: PropertyDescriptor | null = null;
|
||||
|
||||
constructor(baseUrl: URL, bannerId: string, knownNames: Set<string>) {
|
||||
this.reportUrl = new URL(`${bannerId}/detected-cookies`, baseUrl);
|
||||
this.reportUrl = new URL(`${bannerId}/report`, baseUrl);
|
||||
this.knownNames = knownNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export class StorageDetector implements Detector {
|
||||
private originalIDBOpen: typeof IDBFactory.prototype.open | null = null;
|
||||
|
||||
constructor(baseUrl: URL, bannerId: string) {
|
||||
this.reportUrl = new URL(`${bannerId}/detected-trackers`, baseUrl);
|
||||
this.reportUrl = new URL(`${bannerId}/report`, baseUrl);
|
||||
}
|
||||
|
||||
start(): void {
|
||||
|
||||
@@ -35,7 +35,7 @@ export class ThirdPartyDetector implements Detector {
|
||||
private observer: MutationObserver | null = null;
|
||||
|
||||
constructor(baseUrl: URL, bannerId: string) {
|
||||
this.reportUrl = new URL(`${bannerId}/detected-trackers`, baseUrl);
|
||||
this.reportUrl = new URL(`${bannerId}/report`, baseUrl);
|
||||
this.pageOrigin = location.origin;
|
||||
this.proboOrigin = baseUrl.origin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user