Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed Feb 9, 2021
1 parent 0c390ed commit 3178784
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ autoUpdater.checkForUpdatesAndNotify();
const path = require('path');
const isDev = require('electron-is-dev');

setInterval(()=>{
autoUpdater.checkForUpdatesAndNotify();
}, 15000);



function createWindow () {
// Create the browser window.
let win = new BrowserWindow({
Expand Down Expand Up @@ -48,9 +54,6 @@ function createWindow () {
win.webContents.send("systheme-light", "hello")
}
});
ipcMain.on('updatecheck', (event, arg) => {
autoUpdater.checkForUpdatesAndNotify();
});

win.once('ready-to-show', function() {
win.show()
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Condution",
"version": "1.0.0",
"version": "1.0.1",
"main": "main.js",
"postinstall": {
"postinstall": "electron-builder install-app-deps"
Expand Down

0 comments on commit 3178784

Please sign in to comment.