From cab51406080b7619188fa24f2d85b094f153ca07 Mon Sep 17 00:00:00 2001 From: stackxp <170874486+stackxp@users.noreply.github.com> Date: Fri, 6 Feb 2026 20:53:51 +0100 Subject: [PATCH] Don't show right-click menu in file viewer; fixes #1280 --- 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 17787ca1..a2c7311b 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -9753,7 +9753,7 @@ var rcm = (function () { } ebi('wrap').oncontextmenu = function(e) { - if (!r.enabled || e.shiftKey || (r.double && menu.style.display)) { + if (!r.enabled || e.shiftKey || (r.double && menu.style.display) || /doc=/.exec(location.search)) { r.hide(true); return true; }