From fa1f3ae6ecfdc56b22d5e373eb3fe41520fc21c5 Mon Sep 17 00:00:00 2001 From: gebeer Date: Thu, 14 Aug 2025 09:58:49 +0700 Subject: [PATCH] fix: process all disallowed elements instead of stopping after first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix bug in checkElementsWithRequiredConsent() where return statement caused loop to exit after processing first disallowed element - Change return to continue to ensure all blocked elements get consent messages - Resolves issue where only first element with denied consent category would display ask-consent message, subsequent elements were ignored 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/js/PrivacyWire.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/PrivacyWire.js b/src/js/PrivacyWire.js index adaab07..71e2dcf 100644 --- a/src/js/PrivacyWire.js +++ b/src/js/PrivacyWire.js @@ -432,7 +432,7 @@ class PrivacyWire { } if (!allowed) { this.updateDisallowedElement(el); - return; + continue; } this.updateAllowedElement(el); }