mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Fix resumeOnStart option
This commit is contained in:
4
index.js
4
index.js
@ -111,7 +111,9 @@ function createMainWindow() {
|
||||
win.maximize();
|
||||
}
|
||||
|
||||
const urlToLoad = config.get("resumeOnStart") ? config.get("url") : "https://music.youtube.com";
|
||||
const urlToLoad = config.get("options.resumeOnStart")
|
||||
? config.get("url")
|
||||
: config.defaultConfig.url;
|
||||
win.webContents.loadURL(urlToLoad);
|
||||
win.on("closed", onClosed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user