diff --git a/octoprint_ups/static/js/ups.js b/octoprint_ups/static/js/ups.js index bca25e8..fd6a126 100644 --- a/octoprint_ups/static/js/ups.js +++ b/octoprint_ups/static/js/ups.js @@ -93,15 +93,15 @@ $(function() { status_text = "Offline"; } - content += "Status" + status_text + "" + content += "Status" + status_text + "" if (status_text != "Offline") { if (self.vars().hasOwnProperty('battery.charge')) { - content += "Charge" + parseInt(self.vars()["battery.charge"]) + "%" + content += "Charge" + parseInt(self.vars()["battery.charge"]) + "%" } if (self.vars().hasOwnProperty('battery.runtime')) { - content += "Runtime" + parseInt(self.vars()["battery.runtime"]) / 60 + " min" + content += "Runtime" + parseInt(self.vars()["battery.runtime"]) / 60 + " min" } } /*