From e23743980eed1316fc69c18642bc6725f3d79634 Mon Sep 17 00:00:00 2001 From: djfinch Date: Tue, 12 Jun 2018 23:00:52 +0200 Subject: [PATCH] Fix new version notification (#132) --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7e0b85b8..62216a9d 100644 --- a/index.html +++ b/index.html @@ -322,8 +322,10 @@ type: 'GET', dataType: "json", success: function (release) { - latestRelease = release.tag_name; - if (latestRelease !== json.current_version) { + latestRelease = release.tag_name + latestVersion = parseInt(release.tag_name.split('.').join("")); + currentVersion = parseInt(json.current_version.split('.').join("")); + if (latestVersion > currentVersion) { $("#updateNotificationBar").html('
' + '×' + 'Update! XMRigCC v' + latestRelease + ' is available for download\n' +