Fix sometimes not being able to uncheck a domain - Fixes #92

This commit is contained in:
Kuba Orlik 2022-08-14 12:55:21 +02:00
parent 5f29730613
commit cc713004b0
2 changed files with 5 additions and 3 deletions

View File

@ -301,6 +301,10 @@ export default class ExtendedRequest {
return this.stolenData.filter((data) => data.isMarked);
}
unmarkAllEntries() {
this.stolenData.forEach((entry) => entry.unmark());
}
getHost() {
return new URL(this.url).host;
}

View File

@ -184,9 +184,7 @@ export class RequestCluster extends SaferEmitter {
undoMark() {
this.calculateRepresentativeStolenData();
this.representativeStolenData.forEach((entry) => {
entry.unmark();
});
this.requests.forEach((request) => request.unmarkAllEntries());
}
getDataTypeDescription(noun = 'Twojej') {