mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix hide-menu timing + minify log function
This commit is contained in:
@ -3,12 +3,9 @@ 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);
|
||||
}
|
||||
}
|
||||
if (!string || string === "[object Object]") {
|
||||
string = JSON.stringify(log);
|
||||
}
|
||||
console.log(string);
|
||||
})
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user