Update detector report URL path

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-06 14:49:56 +04:00
parent dc6a06cda8
commit bd8ec12876
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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 {

View File

@@ -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;
}