1
0

Moved part of line on the next one for readability.

This commit is contained in:
Alexander Andreev 2022-06-28 04:20:46 +04:00
parent a70b4a6fc5
commit 4c470006bf
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -41,7 +41,8 @@ document.getElementById("overlay").addEventListener("click", e => {
g_scale = 1;
});
const file_links = Array.from(document.getElementsByTagName('tr')).slice(2).filter(e => e.lastChild.innerHTML != "DIR").map(l => l.firstChild.firstChild);
const file_links = Array.from(document.getElementsByTagName('tr')).slice(2)
.filter(e => e.lastChild.innerHTML != "DIR").map(l => l.firstChild.firstChild);
file_links.forEach(f => f.addEventListener('click', e => {
const pathname = e.target.pathname;