MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / vpnCell

Function vpnCell

web/scripts/ragnar_modern.js:2210–2215  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

2208function _wifiZbCheck() {
2209 fetch('/api/net/zigbee/status').then(r => r.json()).then(st => {
2210 const ok = !!(st && st.available);
2211 _wifiState.zbAvailable = ok;
2212 const chk = document.getElementById('wifi-zb'), lab = document.getElementById('wifi-zb-label');
2213 if (chk) chk.disabled = !ok;
2214 if (lab) {
2215 lab.classList.toggle('opacity-40', !ok);
2216 lab.classList.toggle('cursor-not-allowed', !ok);
2217 lab.classList.toggle('cursor-pointer', ok);
2218 lab.classList.toggle('text-gray-400', ok);

Callers

nothing calls this directly

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected