add charts page (groupings)

This commit is contained in:
vapormusic 2022-06-04 08:26:43 +07:00
parent 60159617b8
commit 8f0558ab5b
5 changed files with 149 additions and 1 deletions

View file

@ -500,8 +500,11 @@ const app = new Vue({
})
},
goToGrouping(url = "https://music.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?cc=us&id=34") {
if (url.includes('viewTop')){
window.location.hash = `#charts/top`
} else {
const id = url.split("id=")[1];
window.location.hash = `#groupings/${id}`
window.location.hash = `#groupings/${id}`}
},
navigateForward() {
history.forward()