fixx app get version

This commit is contained in:
AlphaX-Projects 2021-12-25 15:31:39 +01:00 committed by GitHub
parent bc7d64e28f
commit c44dfde669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,11 +119,9 @@ if (!isLock) {
}
})
ipcMain.on('app_version', (event) => {
log.info(app.getVersion());
myWindow.webContents.send("app_version", {
version: app.getVersion();
});
})
log.info(app.getVersion());
mainWindow.webContents.send('app_version', { version: app.getVersion() });
});
autoUpdater.on('update-available', () => {
const n = new Notification({
title: 'Update Available!',