From 3b8dd61dc7f86ba97f3a1979c288838b7f01a918 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 19 Sep 2025 15:49:29 -0400 Subject: [PATCH] fix: using `textContent` instead of `innerHtml` for auth pagechore: update lock (cherry picked from commit 7cadbbe93cd17899af0036ae991b74bcd6895b0c) --- packages/devtools/src/runtime/auth/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/devtools/src/runtime/auth/index.html b/packages/devtools/src/runtime/auth/index.html index 2c93f96fa8..ca339de9ef 100644 --- a/packages/devtools/src/runtime/auth/index.html +++ b/packages/devtools/src/runtime/auth/index.html @@ -50,7 +50,7 @@ const el = document.getElementById('message') if (!token) { - el.innerHTML = '⚠️ No token found, please double check your URL.' + el.textContent = '⚠️ No token found, please double check your URL.' el.style.color = '#df513f' } else { fetch(`${location.pathname.split(/\//g).slice(0, -1).join('/')}/auth-verify?token=${token}`) @@ -65,11 +65,11 @@ data: token, }) - el.innerHTML = '✅ Authorized! You can close this window now.' + el.textContent = '✅ Authorized! You can close this window now.' window.close() }) .catch((err) => { - el.innerHTML = `⚠️ Failed to authorize: ${err.message}` + el.textContent = `⚠️ Failed to authorize: ${err.message}` el.style.color = '#df513f' }) }