configEditor, only show keys in debug mode

main
Codinget 5 years ago
parent 71c6ee887a
commit 055df91ee7
  1. 2
      assets/config.json
  2. 2
      src/js/configEditor.js

@ -1,4 +1,6 @@
{ {
"debug": false,
"player.name": "Player", "player.name": "Player",
"player.leaderboards": false, "player.leaderboards": false,

@ -22,7 +22,7 @@ class ConfigEditor extends Popup {
let id='cfgInput-'+(lastCEId++)+'-'+key.replace(/\./g, '-'); let id='cfgInput-'+(lastCEId++)+'-'+key.replace(/\./g, '-');
let label=span.appendChild(document.createElement('label')); let label=span.appendChild(document.createElement('label'));
label.innerText=data.name; label.innerText=data.name;
label.title=key; if(config.getB('debug')) label.title=key;
let input; let input;
if(data.type=='boolean') { if(data.type=='boolean') {

Loading…
Cancel
Save