support for groupings
This commit is contained in:
parent
d4df4751e9
commit
d83793d538
6 changed files with 177 additions and 44 deletions
|
@ -4,7 +4,10 @@ const Events = {
|
|||
|
||||
// add event listener for when window.location.hash changes
|
||||
window.addEventListener("hashchange", function () {
|
||||
app.appRoute(window.location.hash)
|
||||
app.page = "blank"
|
||||
setTimeout(()=>{
|
||||
app.appRoute(window.location.hash)
|
||||
}, 100)
|
||||
});
|
||||
|
||||
window.addEventListener("mouseup", (e) => {
|
||||
|
|
|
@ -484,6 +484,10 @@ const app = new Vue({
|
|||
}, 100)
|
||||
})
|
||||
},
|
||||
goToGrouping(url = "https://music.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?cc=us&id=34") {
|
||||
const id = url.split("id=")[1];
|
||||
window.location.hash = `#groupings/${id}`
|
||||
},
|
||||
navigateForward() {
|
||||
history.forward()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue