From 5dcfe01d25f4ff3c5c6b1502e3317a56191fbbef Mon Sep 17 00:00:00 2001 From: DewGew Date: Mon, 29 Jan 2024 14:33:03 +0100 Subject: [PATCH] Update version handler --- static/js/smarthome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/smarthome.js b/static/js/smarthome.js index 4973388..91be8b5 100644 --- a/static/js/smarthome.js +++ b/static/js/smarthome.js @@ -373,11 +373,11 @@ function checkVersion() { url: "https://raw.githubusercontent.com/DewGew/DZGA-Flask/development/VERSION.md", cache: false, success: function( data ) { - dataFloat = data.split(",")[0]; + dataFloat = data.split("\n")[0]; var compare = versionCompare(dataFloat, dzga_version); if (compare == 1) { $('#newver').html(" (New version " + dataFloat + " is avalible.)"); - $('#newver_note').html('A new version ' + dataFloat + ' is avalible here'); + $('#newver_note').html('A new version ' + dataFloat + ' is avalible here'); $('#badge').show(); $("#notes").html('You have 1 new notifications'); $("#shownotes" ).show();