()
| 183 | }; |
| 184 | |
| 185 | const showProgress = () => { |
| 186 | if (!progressWrap) return; |
| 187 | progressWrap.hidden = false; |
| 188 | progressWrap.classList.remove('is-error', 'is-indeterminate'); |
| 189 | if (progressFill) progressFill.style.width = '0%'; |
| 190 | if (progressText) progressText.textContent = tx('share_uploading', null, 'Uploading...'); |
| 191 | }; |
| 192 | |
| 193 | const setIndeterminate = () => { |
| 194 | if (!progressWrap) return; |