(count, duplicateCount, prefix = "")
| 2495 | } |
| 2496 | |
| 2497 | function formatImportActivityMessage(count, duplicateCount, prefix = "") { |
| 2498 | const importedCount = Number(count) || 0; |
| 2499 | const alreadyImportedCount = Number(duplicateCount) || 0; |
| 2500 | const detail = |
| 2501 | importedCount > 0 |
| 2502 | ? `+${importedCount} imported` |
| 2503 | : alreadyImportedCount > 0 |
| 2504 | ? "0 imported - already in the list" |
| 2505 | : "0 imported"; |
| 2506 | return prefix ? `${prefix} · ${detail}` : detail; |
| 2507 | } |
| 2508 | |
| 2509 | async function consumeLastImportActivity( |
| 2510 | source = "popup", |
no outgoing calls
no test coverage detected