add back-to-front logger

This somehow fix "did-fail-load" being called on song start, with in-app-plugin-activated
This commit is contained in:
Araxeus
2021-04-05 03:04:06 +03:00
parent 10e29090d8
commit 28d366ab19
3 changed files with 39 additions and 2 deletions

14
providers/logger.js Normal file
View File

@ -0,0 +1,14 @@
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);
}
}
})
}