1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 15:40:21 +01:00
upscayl/electron/utils/logit.ts
2023-09-11 08:37:07 +05:30

13 lines
331 B
TypeScript

import log from "electron-log";
import COMMAND from "../constants/commands";
import { getMainWindow } from "../main-window";
const logit = (...args: any) => {
const mainWindow = getMainWindow();
if (!mainWindow) return;
log.log(...args);
mainWindow.webContents.send(COMMAND.LOG, args.join(" "));
};
export default logit;