code: function setEnabledSources(config) {
      for (let source in config) {
          setSourceEnabled(source, config[source]);
      }
      haveSourcesBeenSelected = true;
  }
docs: expects an object whose keys are source names and whose values are boolean