Skip to content

Commit

Permalink
Reworked getCurrentURI()
Browse files Browse the repository at this point in the history
  • Loading branch information
Bergbok committed Mar 13, 2024
1 parent 89b07ac commit 99ec44c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CustomApps/playlist-tags/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playlist-tags",
"version": "1.1.7",
"version": "1.1.8",
"private": true,
"scripts": {
"build": "spicetify-creator",
Expand Down
2 changes: 1 addition & 1 deletion CustomApps/playlist-tags/src/funcs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export function getAllTags(sorting_option: string) {
};

export function getCurrentURI() {
return Spicetify.Platform.History.location.pathname.split('/')[2] ?? '';
return Spicetify.Platform.History.location.pathname.split('/').slice(2).join('/') ?? '';;
};

export async function getPlaylistMetadata(playlist_uris: string[]) {
Expand Down

0 comments on commit 99ec44c

Please sign in to comment.