()
| 91 | } |
| 92 | |
| 93 | function showErrorMessage() { |
| 94 | if (button) { |
| 95 | const originalText = button.textContent; |
| 96 | const originalColor = button.style.color; |
| 97 | button.textContent = "✗ Failed"; |
| 98 | button.style.color = "red"; |
| 99 | setTimeout(() => { |
| 100 | button.textContent = originalText; |
| 101 | button.style.color = originalColor; |
| 102 | }, 1500); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | try { |
| 107 | // Create a temporary link element to trigger download |