mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
@ -17,7 +17,3 @@ export const startingPages: Record<string, string> = {
|
||||
'Uploaded Albums': 'FEmusic_library_privately_owned_releases',
|
||||
'Uploaded Artists': 'FEmusic_library_privately_owned_artists',
|
||||
};
|
||||
|
||||
export default {
|
||||
startingPages,
|
||||
};
|
||||
|
||||
@ -35,7 +35,7 @@ async function listenForApiLoad() {
|
||||
}
|
||||
|
||||
interface YouTubeMusicAppElement extends HTMLElement {
|
||||
navigate_(page: string): void;
|
||||
navigate(page: string): void;
|
||||
}
|
||||
|
||||
async function onApiLoaded() {
|
||||
@ -167,7 +167,7 @@ async function onApiLoaded() {
|
||||
if (startingPage && startingPages[startingPage]) {
|
||||
document
|
||||
.querySelector<YouTubeMusicAppElement>('ytmusic-app')
|
||||
?.navigate_(startingPages[startingPage]);
|
||||
?.navigate(startingPages[startingPage]);
|
||||
}
|
||||
|
||||
// Remove upgrade button
|
||||
|
||||
Reference in New Issue
Block a user