mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2025-09-08 19:50:47 +00:00
cleanup
This commit is contained in:
@@ -30,7 +30,7 @@ export default class TrayUtility {
|
||||
|
||||
static setStatus(status: string) {
|
||||
this.menu[0].label = status
|
||||
this.tray.setContextMenu(this.build())
|
||||
this.tray?.setContextMenu(this.build())
|
||||
}
|
||||
|
||||
private static build() {
|
||||
|
@@ -20,8 +20,9 @@ export default class Updater {
|
||||
url,
|
||||
})
|
||||
// parse tags and reverse sort them to get the highest
|
||||
const tags = data.map((d) => semver.coerce(d.name)).sort(semver.rcompare)
|
||||
const tags = data.map((d: any) => semver.coerce(d.name)).sort(semver.rcompare)
|
||||
const latest = tags[0]
|
||||
if (!current) throw new Error('Could not determine current version')
|
||||
if (semver.lt(current, latest)) {
|
||||
logger.info('New version available')
|
||||
dialog
|
||||
|
Reference in New Issue
Block a user