From 4e9cf95e8d196b0c42d452ebcafc5677e01fe26b Mon Sep 17 00:00:00 2001 From: stackxp <170874486+stackxp@users.noreply.github.com> Date: Fri, 2 Jan 2026 14:23:39 +0100 Subject: [PATCH] Fix right-click menu (#1159) Co-authored-by: stackxp --- copyparty/web/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index ecd5b6b6..6d5dafd4 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -9600,7 +9600,7 @@ var rcm = (function () { selFile.path = basenames(file.children[1].firstChild.href).split('?')[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"; else { var lead = file.firstChild.firstChild;