Only open directories automatically
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0bbbd68dbe
commit
6825b9e5aa
|
@ -67,7 +67,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
||||||
const visibleRows = rows.filter(row => row.style.display === 'table-row')
|
const visibleRows = rows.filter(row => row.style.display === 'table-row')
|
||||||
if (visibleRows.length === 1) {
|
if (visibleRows.length === 1) {
|
||||||
window.location = visibleRows[0].querySelector('td a').href
|
const target = visibleRows[0].querySelector('td a').href
|
||||||
|
if (target.substr(-1) === '/') {
|
||||||
|
window.location = target
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Reference in a new issue