Update example

pull/2573/head
Tony 4 months ago
parent edbae3ed75
commit 7320840223
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -12,10 +12,14 @@
isChecking = true
try {
const update = await check()
onMessage(`Should update: ${update.available}`)
onMessage(update)
if (update) {
onMessage(`Should update: ${update.available}`)
onMessage(update)
newUpdate = update
newUpdate = update
} else {
onMessage('No update available')
}
} catch (e) {
onMessage(e)
} finally {

Loading…
Cancel
Save