From ab93db04893de3326c74d641f21f3943ba3eb5ec Mon Sep 17 00:00:00 2001 From: jedarden Date: Thu, 16 Apr 2026 09:41:00 -0400 Subject: [PATCH] fix: broaden shadow root dialog detection to any non-style element MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ewt-install-dialog tag name check was too strict — drop it and take the first non-style element child that appears in the shadow root, then poll _installState on it. This matches how the previous version found the dialog before we narrowed the check. Co-Authored-By: Claude Sonnet 4.6 --- dashboard/js/onboard.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard/js/onboard.js b/dashboard/js/onboard.js index 863a79c..774ea4b 100644 --- a/dashboard/js/onboard.js +++ b/dashboard/js/onboard.js @@ -569,7 +569,9 @@ }, 100); } - // Watch for ewt-install-dialog to appear in the shadow root, then start polling. + // Watch for the dialog element to appear in the shadow root, then start polling + // _installState on it. Don't check for a specific tag name — just take the first + // non-style element child that appears. var sr = installBtn.shadowRoot; if (sr) { dlgObserver = new MutationObserver(function (mutations) { @@ -577,8 +579,8 @@ var added = mutations[i].addedNodes; for (var j = 0; j < added.length; j++) { var node = added[j]; - if (node.nodeType === 1 && - node.tagName && node.tagName.toLowerCase() === 'ewt-install-dialog') { + if (node.nodeType === 1 && node.tagName && + node.tagName.toLowerCase() !== 'style') { if (dlgObserver) { dlgObserver.disconnect(); dlgObserver = null; } startPolling(node); return;