This commit is contained in:
Araxeus
2021-04-05 04:08:55 +03:00
parent 6472002f8a
commit 106e461beb
2 changed files with 1 additions and 5 deletions

View File

@ -2,7 +2,7 @@ const { ipcRenderer } = require("electron");
module.exports = () => {
ipcRenderer.on("log", (event, log) => {
let string = log.toString() || log;
let string = log || log.toString();
if (!string || string === "[object Object]") {
string = JSON.stringify(log);
}