diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index b6bf83edf..33660ec3f 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -132,7 +132,7 @@ Gallery = load: (thumb, errorCB) -> ext = thumb.href.match /\w*$/ - elType = {'webm': 'video', 'pdf': 'iframe'}[ext] or 'img' + elType = {'webm': 'video', 'mp4': 'video', 'pdf': 'iframe'}[ext] or 'img' file = $.el elType $.extend file.dataset, thumb.dataset $.on file, 'error', errorCB