mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-24 15:40:21 +01:00
13 lines
331 B
TypeScript
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;
|