Merge pull request #224 from Araxeus/menu-fixes

Menu tweaks
This commit is contained in:
th-ch
2021-05-04 21:24:29 +02:00
committed by GitHub
10 changed files with 263 additions and 187 deletions

View File

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