mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-25 22:47:59 +01:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import Logger from "electron-log";
|
|
import mainWindow from "../main-window";
|
|
import COMMAND from "../constants/commands";
|
|
|
|
const logit = (...args: any) => {
|
|
Logger.log(...args);
|
|
if (!mainWindow) return;
|
|
mainWindow.webContents.send(COMMAND.LOG, args.join(" "));
|
|
};
|
|
|
|
export default logit;
|