mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
🚀 Added function to toggle resuming of last song when app starts
This commit is contained in:
3
index.js
3
index.js
@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user