File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments