去除首次升级时间5秒
This commit is contained in:
parent
cc69c3d864
commit
369aaa420c
4
main.js
4
main.js
|
|
@ -717,9 +717,7 @@ function updateHandle() {
|
||||||
})
|
})
|
||||||
autoUpdater.on('update-available', function (info) {
|
autoUpdater.on('update-available', function (info) {
|
||||||
let messageStr = JSON.stringify({ type: '0' })
|
let messageStr = JSON.stringify({ type: '0' })
|
||||||
setTimeout(() => {
|
sendUpdateMessage(messageStr)
|
||||||
sendUpdateMessage(messageStr)
|
|
||||||
}, 5000)
|
|
||||||
})
|
})
|
||||||
autoUpdater.on('update-not-available', function (info) {
|
autoUpdater.on('update-not-available', function (info) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue