()
| 63 | } |
| 64 | |
| 65 | function ensureDropUploadErrorEl() { |
| 66 | let el = document.getElementById(dropUploadErrorId); |
| 67 | if (el) return el; |
| 68 | |
| 69 | el = document.createElement('div'); |
| 70 | el.id = dropUploadErrorId; |
| 71 | el.className = 'fr-share-alert fr-share-alert-error fr-share-upload-error'; |
| 72 | el.setAttribute('role', 'alert'); |
| 73 | el.hidden = true; |
| 74 | |
| 75 | if (form.parentNode) { |
| 76 | form.parentNode.insertBefore(el, form.nextSibling); |
| 77 | } |
| 78 | return el; |
| 79 | } |
| 80 | |
| 81 | function clearDropUploadError() { |
| 82 | const el = document.getElementById(dropUploadErrorId); |
no outgoing calls
no test coverage detected