add unresponsive listener

This commit is contained in:
Araxeus
2021-04-10 02:51:38 +03:00
parent 3d41d04818
commit 09d9f72db2
4 changed files with 39 additions and 19 deletions

View File

@ -3,7 +3,7 @@ const { ipcRenderer } = require("electron");
function logToString(log) {
let string = (typeof log === "string") ? log : log.toString();
if (!string || string.includes("[object Object]")) {
string = JSON.stringify(log);
string = JSON.stringify(log, null, "\t");
}
return string;
}