From 53d720217b1d2f61efb712bb91c9f9d5d31a213d Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 12 Aug 2021 22:30:52 +0200 Subject: [PATCH] open videos in gallery --- 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 4b98273a..c6185bf1 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2166,7 +2166,7 @@ var thegrid = (function () { var oth = ebi(this.getAttribute('ref')), href = this.getAttribute('href'), aplay = ebi('a' + oth.getAttribute('id')), - is_img = /\.(gif|jpe?g|png|webp)(\?|$)/i.test(href), + is_img = /\.(gif|jpe?g|png|webp|webm|mp4)(\?|$)/i.test(href), in_tree = null, have_sel = QS('#files tr.sel'), td = oth.closest('td').nextSibling,