mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
11 lines
278 B
JavaScript
11 lines
278 B
JavaScript
const { ipcRenderer } = require("electron");
|
|
|
|
module.exports = () => {
|
|
ipcRenderer.on("log", (event, log) => {
|
|
let string = log || log.toString();
|
|
if (!string || string === "[object Object]") {
|
|
string = JSON.stringify(log);
|
|
}
|
|
console.log(string);
|
|
})
|
|
}; |