ponse) {
      document.getElementById(response).checked = true;
      setFormEnabled(true);
    },
  });
}

function setup() {
  // Disable all elements.
  setFormEnabled(false);

  updateTime();
  setInterval(updateTime, 1000);

  if (location.hostname == 'tests' || location.hostname == 'localhost') {
    setupTest();
    return;
  }

  alert('This page can only be run from tests or localhost.');
}

// Send a query to the browser process.
function sendCommand(command) {
  // Set the configured command.
  