mirror of
https://github.com/sascha-hemi/homeassistant-desktop.git
synced 2026-03-21 03:04:10 +01:00
check for update on startup
This commit is contained in:
8
app.js
8
app.js
@@ -32,13 +32,15 @@ const useAutoUpdater = () => {
|
||||
console.error(message)
|
||||
});
|
||||
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
autoUpdater.quitAndInstall();
|
||||
});
|
||||
|
||||
setInterval(() => {
|
||||
autoUpdater.checkForUpdates();
|
||||
}, 1000 * 60 * 30);
|
||||
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
autoUpdater.quitAndInstall();
|
||||
});
|
||||
autoUpdater.checkForUpdates();
|
||||
};
|
||||
|
||||
const checkAutoStart = () => {
|
||||
|
||||
Reference in New Issue
Block a user