MCPcopy Create free account
hub / github.com/error311/FileRise / syncArchiveFormatSelect

Function syncArchiveFormatSelect

public/js/fileActions.js:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75const ARCHIVE_EXT_RE = /\.(zip|7z|rar)$/i;
76
77function 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
89function getSelectedArchiveFormat() {
90 const select = document.getElementById("archiveFormatSelect");

Callers 2

fileActions.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected