Add ability to hide context menu button

This commit is contained in:
Ethan O'Brien 2023-12-24 01:22:43 -06:00
parent eea0ec3dc3
commit 0ee1a70100

View file

@ -1922,6 +1922,7 @@ class EmulatorJS {
pauseButton.style.display = "none";
playButton.style.display = "none";
}
if (this.config.buttonOpts.contextMenuButton === false) contextMenuButton.style.display = "none"
if (this.config.buttonOpts.restart === false) restartButton.style.display = "none"
if (this.config.buttonOpts.settings === false) settingButton[0].style.display = "none"
if (this.config.buttonOpts.fullscreen === false) {