Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Fix keep alerting for new update
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Oct 5, 2016
1 parent da0feec commit 30b28d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ function getData() {
if (xhr.readyState === 4 && xhr.status === 200) {
var newUpdate = JSON.parse(xhr.responseText);

console.log("Latest release is "+newUpdate.tag_name.replace('v', ''));
console.log("Latest release is "+newUpdate.tag_name);

if (newUpdate.tag_name > process.env.npm_package_version)
if (newUpdate.tag_name.replace('v', '') > process.env.npm_package_version)
new Notification('Update available', {'body': 'A new version of Harmony is available, visit the website', 'Tag': 'Harmony-Update', 'origin': 'Harmony'});

}
Expand Down

0 comments on commit 30b28d7

Please sign in to comment.