mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
14 lines
264 B
JavaScript
14 lines
264 B
JavaScript
const { ipcRenderer } = require("electron");
|
|
|
|
function logToString(log) {
|
|
return (typeof log === "string") ?
|
|
log :
|
|
JSON.stringify(log, null, "\t");
|
|
}
|
|
|
|
module.exports = () => {
|
|
ipcRenderer.on("log", (_event, log) => {
|
|
console.log(logToString(log));
|
|
});
|
|
};
|