mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix autoUpdater error in development
This commit is contained in:
12
main.js
12
main.js
@@ -83,12 +83,14 @@ function createWindow () {
|
||||
// initialization and is ready to create browser windows.
|
||||
// Some APIs can only be used after this event occurs.
|
||||
app.on('ready', function() {
|
||||
autoUpdater.addListener('update-downloaded', function() {
|
||||
autoUpdater.quitAndInstall()
|
||||
});
|
||||
autoUpdater.checkForUpdates();
|
||||
if (NODE_ENV === 'production') {
|
||||
autoUpdater.addListener('update-downloaded', function() {
|
||||
autoUpdater.quitAndInstall()
|
||||
});
|
||||
autoUpdater.checkForUpdates();
|
||||
setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval);
|
||||
}
|
||||
|
||||
setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval);
|
||||
createWindow();
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user