(force = false)
| 211 | } |
| 212 | |
| 213 | function updateCaptureName(force = false): void { |
| 214 | if (!captureNameInput || !currentPayload) { |
| 215 | return |
| 216 | } |
| 217 | |
| 218 | if (isCaptureNameEdited && !force) { |
| 219 | return |
| 220 | } |
| 221 | |
| 222 | captureNameInput.value = getCaptureNameSuggestion( |
| 223 | activeTarget, |
| 224 | currentPayload, |
| 225 | ) |
| 226 | isCaptureNameEdited = false |
| 227 | } |
| 228 | |
| 229 | function updatePreview(): void { |
| 230 | if (!previewInput || !currentPayload) { |
no test coverage detected