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

Function setSwitchButton

core_js/popup.js:152–156  ·  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

150* @param {string} varname js internal variable name
151*/
152function setSwitchButton(id, varname)
153{
154 const element = document.getElementById(id);
155 element.checked = this[varname];
156}
157
158/**
159* Reset the global statistic

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected