Files
youtube-music/providers/logger.js
2021-04-05 03:25:45 +03:00

14 lines
362 B
JavaScript

const { ipcRenderer } = require("electron");
module.exports = () => {
ipcRenderer.on("log", (event, log) => {
let string = log.toString() || log;
if (string) {
console.log(string);
} else {
for (let propery of log) {
console.log(propery.toString() || propery);
}
}
})
}