🚀 Added function to toggle resuming of last song when app starts

This commit is contained in:
Nico Nowakowski
2021-03-04 14:14:49 +01:00
parent 5641c3fc87
commit 9aaae7b2d9
3 changed files with 11 additions and 1 deletions

View File

@ -111,7 +111,8 @@ function createMainWindow() {
win.maximize();
}
win.webContents.loadURL(config.get("url"));
const urlToLoad = config.get("resumeOnStart") ? config.get("url") : "https://music.youtube.com";
win.webContents.loadURL(urlToLoad);
win.on("closed", onClosed);
win.on("move", () => {