Change the debug mode trigger to a regular click

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-14 17:01:29 -07:00
parent f3f73a5e41
commit beb5a5c743

View File

@ -2421,10 +2421,10 @@ class Conductor {
}); });
// Bind the secret debug button: the icon in the lower left // Bind the secret debug button: the icon in the lower left
document.querySelector('#header-icon').addEventListener('auxclick', ev => { document.querySelector('#header-icon').addEventListener('click', ev => {
if (ev.button === 1 && ! this.player.debug.enabled) { if (! this.player.debug.enabled) {
new ConfirmOverlay(this, new ConfirmOverlay(this,
"Enable debug mode in the player? This will give you lots of toys to play with, " + "Enable debug mode? This will give you lots of toys to play with, " +
"but disable all saving of scores until you reload the page!", "but disable all saving of scores until you reload the page!",
() => { () => {
this.player.setup_debug(); this.player.setup_debug();