Skip to content

Commit 7cadbbe

Browse files
committed
fix: using textContent instead of innerHtml for auth pagechore: update lock
1 parent 27f80d0 commit 7cadbbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/devtools/src/runtime/auth/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
const el = document.getElementById('message')
5151

5252
if (!token) {
53-
el.innerHTML = '⚠️ No token found, please double check your URL.'
53+
el.textContent = '⚠️ No token found, please double check your URL.'
5454
el.style.color = '#df513f'
5555
} else {
5656
fetch(`${location.pathname.split(/\//g).slice(0, -1).join('/')}/auth-verify?token=${token}`)
@@ -65,11 +65,11 @@
6565
data: token,
6666
})
6767

68-
el.innerHTML = '✅ Authorized! You can close this window now.'
68+
el.textContent = '✅ Authorized! You can close this window now.'
6969
window.close()
7070
})
7171
.catch((err) => {
72-
el.innerHTML = `⚠️ Failed to authorize: ${err.message}`
72+
el.textContent = `⚠️ Failed to authorize: ${err.message}`
7373
el.style.color = '#df513f'
7474
})
7575
}

0 commit comments

Comments
 (0)