re-introduce logic to open unsupported formats in new tabs if selection is active

This commit is contained in:
Til Schmitter 2026-06-09 19:47:50 +02:00
parent d0bc23c38d
commit 999652bde5
2 changed files with 4 additions and 4 deletions

View file

@ -37,8 +37,8 @@ window.baguetteBox = (function () {
scrollCSS = ['', ''],
scrollTimer = 0,
re_i = APPLE ?
/^[^?]+\.(a?png|avif|bmp|gif|hei[cf]s?|jfif|jpe?g|jxl|svg|tiff?|webp)(\?|$)/i :
/^[^?]+\.(a?png|avif|bmp|gif|jfif|jpe?g|jxl|svg|tiff?|webp)(\?|$)/i,
/^[^?]+\.(a?png|avif|bmp|gif|hei[cf]s?|jfif|jpe?g|jxl|svg|ico|tiff?|webp)(\?|$)/i :
/^[^?]+\.(a?png|avif|bmp|gif|jfif|jpe?g|jxl|svg|ico|tiff?|webp)(\?|$)/i,
re_v = /^[^?]+\.(webm|mkv|mp4|m4v|mov)(\?|$)/i,
re_cbz = /^[^?]+\.(cbz)(\?|$)/i,
anims = ['slideIn', 'fadeIn', 'none'],

View file

@ -6471,8 +6471,8 @@ window.thegrid = (function () {
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
atext.click();
// else if (!is_img && have_sel)
// window.open(qhref, '_blank');
else if (!is_img && !is_dir && have_sel)
window.open(qhref, '_blank');
else {
if (!dbl){