(files)
| 6264 | }); |
| 6265 | return; |
| 6266 | } |
| 6267 | renderNetIntegrity(await fetchAPI('/api/net/integrity')); |
| 6268 | } catch (e) { /* offline — leave chips as-is */ |
| 6269 | if (btn) { btn.disabled = false; btn.textContent = btn.dataset.orig || 'Check now'; } |
| 6270 | } |
| 6271 | } |
| 6272 | function _netintFillIfaces() { |
| 6273 | const sel = document.getElementById('netint-iface'); |
| 6274 | if (!sel || sel.dataset.filled === '1') return Promise.resolve(); |
| 6275 | return fetchAPI('/api/net/interfaces').then(x => { |
| 6276 | (x.interfaces || []).forEach(i => { |
| 6277 | const o = document.createElement('option'); |
| 6278 | o.value = i.name; |
| 6279 | const tag = i.type === 'wifi' ? ' (WiFi)' : i.type === 'ethernet' ? ' (LAN)' : (i.type ? ' (' + i.type + ')' : ''); |
| 6280 | o.textContent = i.name + tag; |
| 6281 | sel.appendChild(o); |
| 6282 | }); |
no test coverage detected