1
0

These getElementsByTagName can be replaced with children field.

This commit is contained in:
Alexander Andreev 2022-06-28 05:07:00 +04:00
parent dfe60f527c
commit 197d52964d
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -61,7 +61,7 @@ file_links.forEach(f => f.addEventListener('click', e => {
//// SORT BY COLUMN //// SORT BY COLUMN
const [thead_name, thead_date, thead_size] = document.getElementsByTagName('thead')[0] const [thead_name, thead_date, thead_size] = document.getElementsByTagName('thead')[0]
.getElementsByTagName('tr')[0].getElementsByTagName('th'); .children[0].children;
const tbody = document.getElementsByTagName('tbody')[0]; const tbody = document.getElementsByTagName('tbody')[0];
let g_sort_reverse = false; let g_sort_reverse = false;