feat: Disable hiding default right-click menu when Artplayer.CONTEXTMENU is set to false

This commit is contained in:
Harvey Zack committed 2024-08-12 17:53:43 +08:00
1 parent adff473f71
commit 5655db4b20
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -79,8 +79,8 @@ export default class Contextmenu extends Component {
}
proxy($player, 'contextmenu', (event) => {
event.preventDefault();
if (!this.art.constructor.CONTEXTMENU) return;
event.preventDefault();
this.show = true;