diff --git a/providers/song-info-front.js b/providers/song-info-front.js index 42c3afb2..43a0e0e2 100644 --- a/providers/song-info-front.js +++ b/providers/song-info-front.js @@ -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() {