Fix an issue causing the lag icon to lose its color

This commit is contained in:
yflory 2017-03-21 14:52:49 +01:00
parent 819c7e3bae
commit 994d640f8b
1 changed files with 2 additions and 1 deletions

View File

@ -360,8 +360,8 @@ define([
});
var title;
var $lag = $(lagElement);
$lag.attr('class', '');
if (lag) {
$lag.attr('class', '');
firstConnection = false;
title = Messages.lag + ' : ' + lag + ' ms\n';
if (lag > 30000) {
@ -382,6 +382,7 @@ define([
}
}
else if (!firstConnection) {
$lag.attr('class', '');
// Display the red light at the 2nd failed attemp to get the lag
lagLight.addClass('lag-red');
title = Messages.redLight;