Skip to content

Commit

Permalink
Update script.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Nov 24, 2022
1 parent aa9d135 commit c036992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_plugins/aplayer/script.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
const aplayerItem = item.aplayer; if(!aplayerItem) return;
const rightAplayerCheck = '<%= theme.rightmenu.layout.includes("music") %>' === 'true'
&& item.meta.id === '<%= theme.plugins.aplayer.id %>';
if(rightAplayerCheck) RightMenuAplayer.checkAPlayer();
if(rightAplayerCheck && typeof RightMenuAplayer !="undefined") RightMenuAplayer.checkAPlayer();
if(aplayerItem.events.events.play.every(item => {return item.name !== 'messagePlay'})) {
aplayerItem.on('play', function messagePlay() {
let index = aplayerItem.list.index;
Expand Down

0 comments on commit c036992

Please sign in to comment.