File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -491,14 +491,14 @@ if ( currentView != 'none' && currentView != 'login' ) {
491
491
// Update authentication token.
492
492
auth_hash = data . auth ;
493
493
}
494
+ delete data . auth ;
494
495
}
495
496
if ( data . auth_relay ) {
496
497
auth_relay = data . auth_relay ;
498
+ delete data . auth_relay ;
497
499
}
498
500
// iterate through all the keys then update each element id with the same name
499
- for ( var key of Object . keys ( data ) ) {
500
- if ( key == "auth" ) continue ;
501
- if ( key == "auth_relay" ) continue ;
501
+ for ( const key of Object . keys ( data ) ) {
502
502
if ( $j ( '#' + key ) . hasClass ( "show" ) ) continue ; // don't update if the user has the dropdown open
503
503
if ( $j ( '#' + key ) . length ) $j ( '#' + key ) . replaceWith ( data [ key ] ) ;
504
504
if ( key == 'getBandwidthHTML' ) bwClickFunction ( ) ;
You can’t perform that action at this time.
0 commit comments