Skip to content

Commit

Permalink
Fix for Playlist Manager UI not appearing on Load
Browse files Browse the repository at this point in the history
UI was not appearing/injecting on load (if loaded page was a playlist). And also navigating to a non-playlist page and back to a playlist wouldn't inject the UI. but when you navigate to another page the UI would popup. Fixed all of these issues by adding a permanent history listener so that we are always detecting the current page at any point and then applying functionality/logic from there.
  • Loading branch information
anishsudini committed Nov 1, 2024
1 parent b54e200 commit 02b3ac4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extensions/playlistExtension.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,8 @@ const initPlaylistPageLogic = () => {
});
};

initPlaylistPageLogic();
initPlaylistPageLogic();

Spicetify.Platform.History.listen(() => {
initPlaylistPageLogic();
});

0 comments on commit 02b3ac4

Please sign in to comment.