addDetecting method ✓ 100.0%
Last updated: 2026-03-04T23:21:38.399Z
Metrics
LOC: 13
Complexity: 3
Params: 1
Coverage: 100.0% (6/6 lines, 0x executed)
Signature
addDetecting(field: FormField)
Source Code
addDetecting(field: FormField) {
const item = getOrCreateItem(field);
const label = escapeTextContent(getFieldLabel(field));
const isAi =
field.detectionMethod === "chrome-ai" ||
field.detectionMethod === "tensorflow";
item.className = "fa-progress-item detecting";
item.innerHTML = `
<span class="fa-progress-icon"><span class="fa-spinner${isAi ? " ai" : ""}"></span></span>
<span class="fa-progress-label">${label}</span>
<span class="fa-progress-badge">${escapeTextContent(t("progressDetecting"))}</span>
`;
},
Dependencies (Outgoing)
| Target | Type |
|---|---|
| getOrCreateItem | calls |
| escapeTextContent | calls |
| getFieldLabel | calls |
No incoming dependencies.