Skip to content

Commit

Permalink
Update version handler
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Jan 29, 2024
1 parent 8a91fed commit 5dcfe01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(" <i> (New version " + dataFloat + " is avalible.)</i>");
$('#newver_note').html('A new version ' + dataFloat + ' is avalible <a href="https://github.com/DewGew/DZGA-Flask" target="_blank">here</a>');
$('#newver_note').html('A new version ' + dataFloat + ' is avalible <a href="https://github.com/DewGew/DZGA-Flask" target="_blank">here</a>');
$('#badge').show();
$("#notes").html('You have 1 new notifications');
$("#shownotes" ).show();
Expand Down

0 comments on commit 5dcfe01

Please sign in to comment.