MCPcopy Index your code
hub / github.com/ClearURLs/Addon / setSwitchButton

Function setSwitchButton

core_js/settings.js:346–349  ·  view source on GitHub ↗

* Set the value of a switch button. * @param {string} id HTML id * @param {string} varname js internal variable name

(id, varname)

Source from the content-addressed store, hash-verified

344 * @param {string} varname js internal variable name
345 */
346function setSwitchButton(id, varname) {
347 let element = document.getElementById(id);
348 element.checked = settings[varname];
349}

Callers 1

changeSwitchButtonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected