1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-11 23:36:11 +01:00
upscayl/electron/utils/logit.ts

13 lines
331 B
TypeScript

import log from "electron-log";
import COMMAND from "../../common/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;