mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
typofix
This commit is contained in:
1 parent
ca75dbd637
commit
a04900bcba
3 files changed
+4
-3
No files matched your search
@@ -19,8 +19,8 @@ function artplayerPluginPlaylist(art) {
|
||||
`,
|
||||
);
|
||||
|
||||
const $playlistInner = $playlist.querySelector('.artplay-playlist-inner');
|
||||
let playlist = [];
|
||||
const $playlistInner = $playlist.querySelector('.artplay-playlist-inner');
|
||||
|
||||
function switchUrl(index) {
|
||||
const itemOption = playlist[index];
|
||||
@@ -67,6 +67,7 @@ function artplayerPluginPlaylist(art) {
|
||||
sleep(1000).then(player.play);
|
||||
});
|
||||
});
|
||||
|
||||
art.on('afterAttachUrl', () => {
|
||||
const index = playlist.findIndex(item => item.url === $video.src);
|
||||
const $children = Array.from($playlistInner.children);
|
||||
|
||||
Reference in new issue
Block a user