@@ -182,12 +182,9 @@ function formatPriority(priority) {
182182 ] . join ( ' | ' ) ;
183183}
184184
185- function appendCell ( row , val , span ) {
185+ function appendCell ( row , val ) {
186186 const cell = document . createElement ( 'td' ) ;
187187 cell . textContent = val ;
188- if ( span ) {
189- cell . setAttribute ( 'colspan' , span ) ;
190- }
191188 row . appendChild ( cell ) ;
192189}
193190
@@ -232,11 +229,11 @@ function getFinalResult() {
232229async function iceCallback ( event ) {
233230 const elapsed = ( ( window . performance . now ( ) - begin ) / 1000 ) . toFixed ( 3 ) ;
234231 const row = document . createElement ( 'tr' ) ;
235- appendCell ( row , elapsed ) ;
236232 if ( event . candidate ) {
237233 if ( event . candidate . candidate === '' ) {
238234 return ;
239235 }
236+ appendCell ( row , elapsed ) ;
240237 const { candidate} = event ;
241238 let url ;
242239 // Until url is available from the candidate, to to polyfill.
@@ -251,18 +248,14 @@ async function iceCallback(event) {
251248 } ) ;
252249 }
253250
254- appendCell ( row , candidate . component ) ;
255251 appendCell ( row , candidate . type ) ;
256252 appendCell ( row , candidate . foundation ) ;
257253 appendCell ( row , candidate . protocol ) ;
258254 appendCell ( row , candidate . address ) ;
259255 appendCell ( row , candidate . port ) ;
260256 appendCell ( row , formatPriority ( candidate . priority ) ) ;
261- appendCell ( row , candidate . relayProtocol || '' ) ;
262- appendCell ( row , candidate . sdpMid ) ;
263- appendCell ( row , candidate . sdpMLineIndex ) ;
264- appendCell ( row , candidate . usernameFragment ) ;
265257 appendCell ( row , candidate . url || url || '' ) ;
258+ appendCell ( row , candidate . relayProtocol || '' ) ;
266259 candidates . push ( candidate ) ;
267260 }
268261 candidateTBody . appendChild ( row ) ;
@@ -275,7 +268,7 @@ function gatheringStateChange() {
275268 const elapsed = ( ( window . performance . now ( ) - begin ) / 1000 ) . toFixed ( 3 ) ;
276269 const row = document . createElement ( 'tr' ) ;
277270 appendCell ( row , elapsed ) ;
278- appendCell ( row , getFinalResult ( ) , 7 ) ;
271+ appendCell ( row , getFinalResult ( ) ) ;
279272 pc . close ( ) ;
280273 pc = null ;
281274 if ( stream ) {
0 commit comments