From 520ac8f4dcf7327df5ed7333795948d8cbacaad4 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 23 Nov 2024 17:55:05 +0000 Subject: [PATCH] fix opening md files from gridview --- 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 7da97ce0..718e56c4 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5945,7 +5945,7 @@ var thegrid = (function () { fid = oth.getAttribute('id'), aplay = ebi('a' + fid), atext = ebi('t' + fid), - is_txt = atext && showfile.getlang(href) && !/\.ts$/.test(href), + is_txt = atext && !/\.ts$/.test(href) && showfile.getlang(href), is_img = img_re.test(href), is_dir = href.endsWith('/'), is_srch = !!ebi('unsearch'),