Files
youtube-music/providers/logger.js
Araxeus 28d366ab19 add back-to-front logger
This somehow fix "did-fail-load" being called on song start, with in-app-plugin-activated
2021-04-05 03:04:06 +03:00

14 lines
294 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);
}
}
})
}