Skip to content

Commit 3a0e6b3

Browse files
Update frontend/javascript/index.js
Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
1 parent b1111e5 commit 3a0e6b3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

frontend/javascript/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,18 @@ function startRenderingLoop() {
331331

332332
// Set user's IP and provider
333333
if (testState.testData.clientIp) {
334-
privacyWarning.innerHTML = `<span>You are connected through:</span><br/>${testState.testData.clientIp}`;
334+
// Clear previous content
335+
privacyWarning.innerHTML = '';
336+
337+
const connectedThrough = document.createElement('span');
338+
connectedThrough.textContent = 'You are connected through:';
339+
340+
const ipAddress = document.createTextNode(testState.testData.clientIp);
341+
342+
privacyWarning.appendChild(connectedThrough);
343+
privacyWarning.appendChild(document.createElement('br'));
344+
privacyWarning.appendChild(ipAddress);
345+
335346
privacyWarning.classList.remove("hidden");
336347
}
337348

0 commit comments

Comments
 (0)