Use `continue`
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 1 Mar 2024 12:25:18 +0000 (13:25 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 1 Mar 2024 12:25:18 +0000 (13:25 +0100)
ts/WoltLabSuite/Core/Bootstrap.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Bootstrap.js

index 31f97f983bd039b4a90b1fd5427a9483a9244e7b..218d2e0aad6ffb276f656c7e472763e3a9d9f68e 100644 (file)
@@ -179,21 +179,21 @@ export function setup(options: BoostrapOptions): void {
         }
 
         if (node.querySelector(".g-recaptcha-bubble-arrow") === null) {
-          return;
+          continue;
         }
 
         const iframe = node.querySelector("iframe");
         if (!iframe) {
-          return;
+          continue;
         }
         const name = "a-" + iframe.name.split("-")[1];
         const widget = document.querySelector(`iframe[name="${name}"]`);
         if (!widget) {
-          return;
+          continue;
         }
         const dialog = widget.closest("woltlab-core-dialog");
         if (!dialog) {
-          return;
+          continue;
         }
 
         getPageOverlayContainer().append(node);
index cba11338bc227359937d1ab07ce20c2d67608dc8..a825090cb4b71e013a5a3e8a21536c746eec543f 100644 (file)
@@ -141,21 +141,21 @@ define(["require", "exports", "tslib", "./Core", "./Date/Picker", "./Devtools",
                     if (!(node instanceof HTMLElement)) {
                         continue;
                     }
-                    if (node.querySelectorAll(".g-recaptcha-bubble-arrow").length === 0) {
-                        return;
+                    if (node.querySelector(".g-recaptcha-bubble-arrow") === null) {
+                        continue;
                     }
                     const iframe = node.querySelector("iframe");
                     if (!iframe) {
-                        return;
+                        continue;
                     }
                     const name = "a-" + iframe.name.split("-")[1];
                     const widget = document.querySelector(`iframe[name="${name}"]`);
                     if (!widget) {
-                        return;
+                        continue;
                     }
                     const dialog = widget.closest("woltlab-core-dialog");
                     if (!dialog) {
-                        return;
+                        continue;
                     }
                     (0, PageOverlay_1.getPageOverlayContainer)().append(node);
                     node.classList.add("g-recaptcha-container");