From 0ee1a7010025d81d897fb074279dfe8bff27a649 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Sun, 24 Dec 2023 01:22:43 -0600 Subject: [PATCH] Add ability to hide context menu button --- data/emulator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/data/emulator.js b/data/emulator.js index 25b566a..094b164 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -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) {