Skip to content

Commit

Permalink
fix(rightmenu): aplayer disable
Browse files Browse the repository at this point in the history
  • Loading branch information
inkss authored Jun 10, 2022
1 parent 1621fbb commit 1c89b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/js/plugins/rightMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ RightMenus.fun = (() => {
_rightMenuWrapper.style.top = `${showTop}px`;
if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) fn.menuNotic();
} catch (error) {
if (volantis.GLOBAL_CONFIG.debug) console.error(error);
console.error(error);
fn.hideMenu();
return true;
}
Expand Down Expand Up @@ -316,7 +316,7 @@ RightMenus.fun = (() => {
}

// 判断是否显示音乐控制器
if (volantis.GLOBAL_CONFIG.plugins.aplayer.enable
if (volantis.GLOBAL_CONFIG.plugins.aplayer?.enable
&& typeof RightMenuAplayer !== 'undefined'
&& RightMenuAplayer.APlayer.player !== undefined) {
if (rightMenuConfig.options.musicAlwaysShow
Expand Down

0 comments on commit 1c89b63

Please sign in to comment.