Update power.js

10.5.x-maintenance
fgiudice98 2018-12-27 12:43:18 +01:00
parent 95f4f1c888
commit b0528143a3
1 changed files with 1 additions and 5 deletions

View File

@ -253,11 +253,7 @@ TABS.power.initialize = function (callback) {
for (var i = 0; i < VOLTAGE_METERS.length; i++) {
var elementName = '#voltage-meter-' + i + ' .value';
var element = $(elementName);
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
element.text(i18n.getMessage('powerVoltageValue', [ANALOG.voltage]));
} else {
element.text(i18n.getMessage('powerVoltageValue', [VOLTAGE_METERS[i].voltage]));
}
element.text(i18n.getMessage('powerVoltageValue', [VOLTAGE_METERS[i].voltage]));
}
});