Skip to content

Commit

Permalink
fix opening md files from gridview
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Nov 23, 2024
1 parent 537a6e5 commit 520ac8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copyparty/web/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 520ac8f

Please sign in to comment.