Merge pull request #960 from umbreon22/check-now-playing-container-for-context-menu

Fix now playing context menu not rendering from 'songs' page
This commit is contained in:
cryptofyre 2022-05-01 12:01:01 -05:00 committed by GitHub
commit 8f883c21d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4019,7 +4019,8 @@ const app = new Vue({
} }
} }
if (app.mk.nowPlayingItem._container["attributes"] && app.mk.nowPlayingItem._container.name != "station") { const nowPlayingContainer = app.mk.nowPlayingItem._container;
if (nowPlayingContainer && nowPlayingContainer["attributes"] && nowPlayingContainer.name != "station") {
menus.normal.items.find(x => x.id == "showInMusic").hidden = false menus.normal.items.find(x => x.id == "showInMusic").hidden = false
} }