Skip to content

Commit

Permalink
fix: fix "Starting page"
Browse files Browse the repository at this point in the history
- fix #1822
  • Loading branch information
JellyBrick committed Jul 14, 2024
1 parent eeaaf2f commit 8879799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/providers/extracted-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
4 changes: 2 additions & 2 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function listenForApiLoad() {
}

interface YouTubeMusicAppElement extends HTMLElement {
navigate_(page: string): void;
navigate(page: string): void;
}

async function onApiLoaded() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8879799

Please sign in to comment.