Improved songinfo provider, by using the data from the '/player' request

This commit is contained in:
Sem Visscher
2021-03-18 17:48:56 +01:00
parent c5bda4f3be
commit d852029d25
4 changed files with 52 additions and 77 deletions

View File

@ -29,6 +29,10 @@ document.addEventListener("DOMContentLoaded", () => {
});
});
// inject song-info provider
const songInfoProviderPath = path.join(__dirname, "providers", "song-info-front.js")
fileExists(songInfoProviderPath, require(songInfoProviderPath));
// Add action for reloading
global.reload = () =>
remote.getCurrentWindow().webContents.loadURL(config.get("url"));