Fix right-click menu (#1159)

Co-authored-by: stackxp <tillijungblut@gmail.com>
This commit is contained in:
stackxp 2026-01-02 14:23:39 +01:00 committed by GitHub
parent 3bf80c8152
commit 4e9cf95e8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9600,7 +9600,7 @@ var rcm = (function () {
selFile.path = basenames(file.children[1].firstChild.href).split('?')[0]; selFile.path = basenames(file.children[1].firstChild.href).split('?')[0];
selFile.relpath = selFile.path.split('/').slice(-1)[0]; selFile.relpath = selFile.path.split('/').slice(-1)[0];
if (file.children[3].innerHTML == "---") if (noq_href(file.children[1].firstChild).endsWith("/"))
selFile.type = "dir"; selFile.type = "dir";
else { else {
var lead = file.firstChild.firstChild; var lead = file.firstChild.firstChild;