|
@@ -1,5 +1,6 @@
|
|
const { app, BrowserWindow, Menu } = require('electron');
|
|
const { app, BrowserWindow, Menu } = require('electron');
|
|
const path = require('path');
|
|
const path = require('path');
|
|
|
|
+const {writeLog} = require('./src/log/log-writer.js')
|
|
|
|
|
|
function createWindow() {
|
|
function createWindow() {
|
|
const isMac = process.platform === 'darwin';
|
|
const isMac = process.platform === 'darwin';
|
|
@@ -36,4 +37,8 @@ app.on('window-all-closed', () => {
|
|
|
|
|
|
app.on('activate', () => {
|
|
app.on('activate', () => {
|
|
if (BrowserWindow.getAllWindows().length === 0) createWindow();
|
|
if (BrowserWindow.getAllWindows().length === 0) createWindow();
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+ipcMain.handle('write-log', (_, level, msg) => {
|
|
|
|
+ writeLog(level, msg);
|
|
});
|
|
});
|