mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
set resume on start url to songInfo.url
This commit is contained in:
7
index.js
7
index.js
@ -197,13 +197,6 @@ app.once("browser-window-created", (event, win) => {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
win.webContents.on("did-navigate-in-page", () => {
|
||||
const url = win.webContents.getURL();
|
||||
if (url.startsWith("https://music.youtube.com")) {
|
||||
config.set("url", url);
|
||||
}
|
||||
});
|
||||
|
||||
win.webContents.on("will-navigate", (_, url) => {
|
||||
if (url.startsWith("https://accounts.google.com")) {
|
||||
// Force user-agent "Firefox Windows" for Google OAuth to work
|
||||
|
||||
Reference in New Issue
Block a user