()
| 275 | } |
| 276 | |
| 277 | function updateSourceRow(): void { |
| 278 | if (!currentPayload) { |
| 279 | return |
| 280 | } |
| 281 | |
| 282 | const source = getSourceParts(currentPayload) |
| 283 | |
| 284 | if (sourceTitle) { |
| 285 | sourceTitle.textContent = source.title |
| 286 | } |
| 287 | |
| 288 | if (sourcePath) { |
| 289 | sourcePath.textContent = source.path |
| 290 | } |
| 291 | |
| 292 | updateSourceIcon(currentPayload.faviconUrl) |
| 293 | } |
| 294 | |
| 295 | function updatePreviewLabel(): void { |
| 296 | if (!previewLabel || !previewInput) { |
no test coverage detected