Skip to content

Commit f1615e0

Browse files
committed
lint
1 parent 3381e91 commit f1615e0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

post-processing/generate-autoconsent-rules/generation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ function generateRulesForSite(region, initialUrl, finalUrl, collectorResult, mat
249249
let keptCount = 0;
250250

251251
// const llmConfirmedPopups = collectorResult.scrapedFrames.flatMap((frame) => frame.potentialPopups).filter((popup) => popup.llmMatch);
252-
const regexConfirmedPopups = collectorResult.scrapedFrames.flatMap((frame) => frame.potentialPopups).filter((popup) => popup.regexMatch);
252+
const regexConfirmedPopups = collectorResult.scrapedFrames
253+
.flatMap((frame) => frame.potentialPopups)
254+
.filter((popup) => popup.regexMatch);
253255
// if (llmConfirmedPopups.length > 1 || llmConfirmedPopups[0].rejectButtons.length > 1) {
254256
if (regexConfirmedPopups.length > 1 || regexConfirmedPopups[0].rejectButtons.length > 1) {
255257
console.warn('Multiple cookie popups or reject buttons found in', initialUrl);

post-processing/generate-autoconsent-rules/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ async function processCookiePopupsForSite(globalParams, { finalUrl, initialUrl,
149149
const updatedExistingRules = structuredClone(existingRules);
150150

151151
// const llmConfirmedPopups = collectorResult.scrapedFrames.flatMap((frame) => frame.potentialPopups).filter((popup) => popup.llmMatch);
152-
const regexConfirmedPopups = collectorResult.scrapedFrames.flatMap((frame) => frame.potentialPopups).filter((popup) => popup.regexMatch);
152+
const regexConfirmedPopups = collectorResult.scrapedFrames
153+
.flatMap((frame) => frame.potentialPopups)
154+
.filter((popup) => popup.regexMatch);
153155

154156
// shortcut if no popups with llmMatch
155157
// if (llmConfirmedPopups.length === 0) {

0 commit comments

Comments
 (0)