Fix mp4 in gallery.

This commit is contained in:
ccd0 2018-01-24 07:08:24 -08:00
parent d8cca06b3d
commit 18281092c5

View File

@ -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