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 isChecking = true
try { try {
const update = await check() const update = await check()
onMessage(`Should update: ${update.available}`) if (update) {
onMessage(update) onMessage(`Should update: ${update.available}`)
onMessage(update)
newUpdate = update newUpdate = update
} else {
onMessage('No update available')
}
} catch (e) { } catch (e) {
onMessage(e) onMessage(e)
} finally { } finally {

Loading…
Cancel
Save