fix: period selector issue, version issue

This commit is contained in:
18alantom
2022-04-01 18:58:21 +05:30
parent 98bcbf20f9
commit 1c8a70819e
5 changed files with 26 additions and 17 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import { dialog, ipcMain } from 'electron';
import { app, dialog, ipcMain } from 'electron';
import { autoUpdater } from 'electron-updater';
import fs from 'fs/promises';
import path from 'path';
@@ -112,4 +112,8 @@ export default function registerIpcMainActionListeners(main: Main) {
ipcMain.handle(IPC_ACTIONS.GET_CREDS, async (event) => {
return await getUrlAndTokenString();
});
ipcMain.handle(IPC_ACTIONS.GET_VERSION, (_) => {
return app.getVersion();
});
}