Fix mp4 in gallery.
This commit is contained in:
parent
d8cca06b3d
commit
18281092c5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user