alessandro trinca tornidor commited on
Commit
fcb80e0
·
1 Parent(s): 4614287

fix: avoid error on checking id-input-webserver-wordfreq-checkbox

Browse files
Files changed (1) hide show
  1. static/index.js +3 -4
static/index.js CHANGED
@@ -1000,10 +1000,9 @@ async function updateWordsFreqIfPressEnter() {
1000
  }
1001
 
1002
  function toggleWebserverCheckbox() {
1003
- document.getElementById('id-input-webserver-wordfreq').disabled=!this.checked;document.getElementById('id-wordfreq-show-analyzer').innerText=this.checked?'webserver':'embedded';
1004
- if (isMobile()) {
1005
- toggleElementWithClassById('id-container-desktop-menu')
1006
- }
1007
  }
1008
 
1009
  function handleMobileWindow() {
 
1000
  }
1001
 
1002
  function toggleWebserverCheckbox() {
1003
+ const checked = document.getElementById("id-input-webserver-wordfreq-checkbox").checked
1004
+ document.getElementById('id-input-webserver-wordfreq').disabled=!checked;
1005
+ document.getElementById('id-wordfreq-show-analyzer').innerText=checked?'webserver':'embedded';
 
1006
  }
1007
 
1008
  function handleMobileWindow() {