mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Store metadata in front
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user