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

Commit

Permalink
Fix update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Aug 10, 2016
1 parent f485a25 commit 9ab838d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/src/app/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ class Update {
}).then((json) => {
const newRelease = json.find((release) => {
let tag = release.tag_name
tag = tag.indexOf('v' === 0) ? tag.substr(1) : tag
tag = tag.indexOf('v') === 0 ? tag.substr(1) : tag
console.log(release.tag_name, tag)
return (pkg.prerelease === true || release.prerelease === false) && compareVersion(tag, pkg.version) >= 1
})

if (newRelease) {
let tag = newRelease.tag_name
tag = tag.indexOf('v' === 0) ? tag.substr(1) : tag
tag = tag.indexOf('v') === 0 ? tag.substr(1) : tag
dialog.showMessageBox(window, {
type: 'question',
title: 'Updates Available',
Expand Down

0 comments on commit 9ab838d

Please sign in to comment.