()
| 278 | } |
| 279 | |
| 280 | function resetButton() { |
| 281 | dom.generateBtn.classList.remove("generating", "retrying"); |
| 282 | dom.generateBtn.textContent = "Generate Meme"; |
| 283 | currentAbort = null; |
| 284 | stopCatAnimation(); |
| 285 | setInputsDisabled(false); |
| 286 | updateGenerateButtonState(); |
| 287 | clearInterval(progressInterval); |
| 288 | progressInterval = null; |
| 289 | } |
| 290 | |
| 291 | // ── URL Sanitization ───────────────────────────────────────────────────────── |
| 292 |
no test coverage detected