diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index dccff93d..5a20c63c 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1246,8 +1246,8 @@ check_image_support('jxl', "data:image/jxl;base64,/woIAAAMABKIAgC4AF3lEgA="); var img_re = APPLE ? - /\.(a?png|avif|bmp|gif|hei[cf]s?|jpe?g|jfif|svg|webp|webm|mkv|mp4|m4v|mov)(\?|$)/i : - /\.(a?png|avif|bmp|gif|jpe?g|jfif|svg|webp|webm|mkv|mp4|m4v|mov)(\?|$)/i; + /\.(a?png|avif|bmp|gif|hei[cf]s?|jpe?g|jfif|svg|webp|webm|mkv|mp4|m4v|mov|svg)(\?|$)/i : + /\.(a?png|avif|bmp|gif|jpe?g|jfif|svg|webp|webm|mkv|mp4|m4v|mov|svg)(\?|$)/i; var wopi_set = !window.have_wopi ? null : new Set('odt fodt ott doc docx dotx rtf odm ods fods ots xls xlsx odp fodp otp ppt pptx ppsx odg fodg otg odf'.split(' ')); @@ -5694,8 +5694,8 @@ var thegrid = (function () { fid = oth.getAttribute('id'), aplay = ebi('a' + fid), atext = ebi('t' + fid), - is_txt = atext && !/\.ts$/.test(href) && showfile.getlang(href), is_img = img_re.test(href), + is_txt = atext && !is_img && !/\.ts$/.test(href) && showfile.getlang(href), is_dir = href.endsWith('/'), is_srch = !!ebi('unsearch'), in_tree = is_dir && treectl.find(oth.textContent.slice(0, -1)),