Store metadata in front

This commit is contained in:
TC
2021-03-29 21:33:33 +02:00
parent 7ac9fda1eb
commit 05eee7cb0f

View File

@ -1,5 +1,11 @@
const { ipcRenderer } = require("electron");
global.songInfo = {};
ipcRenderer.on("update-song-info", (_, extractedSongInfo) => {
global.songInfo = JSON.parse(extractedSongInfo);
});
const injectListener = () => {
var oldXHR = window.XMLHttpRequest;
function newXHR() {