()
| 75 | const ARCHIVE_EXT_RE = /\.(zip|7z|rar)$/i; |
| 76 | |
| 77 | function syncArchiveFormatSelect() { |
| 78 | const select = document.getElementById("archiveFormatSelect"); |
| 79 | if (!select) return; |
| 80 | const rarOption = select.querySelector('option[value="rar"]'); |
| 81 | if (rarOption) { |
| 82 | rarOption.remove(); |
| 83 | } |
| 84 | if (!ARCHIVE_FORMATS.includes(select.value)) { |
| 85 | select.value = "zip"; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | function getSelectedArchiveFormat() { |
| 90 | const select = document.getElementById("archiveFormatSelect"); |
no outgoing calls
no test coverage detected