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

Merged
arek merged 1 commits from fix-checkbox into develop 2022-09-12 09:48:05 +02:00
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); return this.stolenData.filter((data) => data.isMarked);
} }
unmarkAllEntries() {
this.stolenData.forEach((entry) => entry.unmark());
}
getHost() { getHost() {
return new URL(this.url).host; return new URL(this.url).host;
} }

View File

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