load browse page on launch
This commit is contained in:
parent
9e4f3015f0
commit
2c3535fcdc
1 changed files with 8 additions and 2 deletions
|
@ -326,7 +326,7 @@ const app = new Vue({
|
||||||
|
|
||||||
let type = (self.mk.nowPlayingItem != null) ? self.mk.nowPlayingItem["type"] ?? '' : '';
|
let type = (self.mk.nowPlayingItem != null) ? self.mk.nowPlayingItem["type"] ?? '' : '';
|
||||||
|
|
||||||
if (type.includes("musicVideo") || type.includes("uploadedVideo")) {
|
if (type.includes("musicVideo") || type.includes("uploadedVideo") || type.includes("music-movie")) {
|
||||||
document.getElementById("apple-music-video-container").style.display = "block";
|
document.getElementById("apple-music-video-container").style.display = "block";
|
||||||
// app.chrome.topChromeVisible = false
|
// app.chrome.topChromeVisible = false
|
||||||
} else {
|
} else {
|
||||||
|
@ -365,6 +365,11 @@ const app = new Vue({
|
||||||
if (window.location.hash != "") {
|
if (window.location.hash != "") {
|
||||||
this.appRoute(window.location.hash)
|
this.appRoute(window.location.hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setTimeout(() =>{
|
||||||
|
this.getBrowsePage();
|
||||||
|
this.$forceUpdate()}, 500)
|
||||||
},
|
},
|
||||||
invokeDrawer(panel) {
|
invokeDrawer(panel) {
|
||||||
if (this.drawer.panel == panel && this.drawer.open) {
|
if (this.drawer.panel == panel && this.drawer.open) {
|
||||||
|
@ -663,7 +668,8 @@ const app = new Vue({
|
||||||
});
|
});
|
||||||
window.location.hash = `${kind}/${id}`
|
window.location.hash = `${kind}/${id}`
|
||||||
document.querySelector("#app-content").scrollTop = 0
|
document.querySelector("#app-content").scrollTop = 0
|
||||||
} else if (!kind.toString().includes("radioStation") && !kind.toString().includes("song") && !kind.toString().includes("musicVideo") && !kind.toString().includes("uploadedVideo")) {
|
} else if (!kind.toString().includes("radioStation") && !kind.toString().includes("song") && !kind.toString().includes("musicVideo") && !kind.toString().includes("uploadedVideo") && !kind.toString().includes("music-movie")) {
|
||||||
|
if (kind.toString().includes("music-movie")){kind = "musicMovie"}
|
||||||
app.page = (kind) + "_" + (id);
|
app.page = (kind) + "_" + (id);
|
||||||
app.getTypeFromID((kind), (id), (isLibrary), {extend: "editorialVideo"});
|
app.getTypeFromID((kind), (id), (isLibrary), {extend: "editorialVideo"});
|
||||||
window.location.hash = `${kind}/${id}`
|
window.location.hash = `${kind}/${id}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue