Added support for "uploadedVideo" type

This commit is contained in:
booploops 2021-12-07 00:18:39 -08:00
parent 3674d89f74
commit 98bc2d60e9

View file

@ -209,7 +209,7 @@ const app = new Vue({
this.mk.addEventListener(MusicKit.Events.nowPlayingItemDidChange, (a) => { this.mk.addEventListener(MusicKit.Events.nowPlayingItemDidChange, (a) => {
let type = (self.mk.nowPlayingItem != null) ? self.mk.nowPlayingItem["type"] ?? '' : ''; let type = (self.mk.nowPlayingItem != null) ? self.mk.nowPlayingItem["type"] ?? '' : '';
if (type.includes("musicVideo")){ if (type.includes("musicVideo") || type.includes("uploadedVideo")){
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 {