diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2015-09-12 21:03:54 +0100 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2015-09-12 21:03:54 +0100 |
| commit | 166ba2a0a205c88bdb8fcc6fc538a0bdc01b60d9 (patch) | |
| tree | 5a7293c0d78804f72e253e385d015162e029777b /js/expand-video.js | |
| parent | 05c569e656070f086de49d24749d4b18916975da (diff) | |
| parent | 844b26216614d953ee8521838f1030ad59d735ec (diff) | |
Merge remote-tracking branch 'vichan/master'
Diffstat (limited to 'js/expand-video.js')
| -rw-r--r-- | js/expand-video.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/expand-video.js b/js/expand-video.js index 79872510..08b474c1 100644 --- a/js/expand-video.js +++ b/js/expand-video.js @@ -204,13 +204,13 @@ function setupVideo(thumb, url) { function setupVideosIn(element) { var thumbs = element.querySelectorAll("a.file"); for (var i = 0; i < thumbs.length; i++) { - if (/\.webm$/.test(thumbs[i].pathname)) { + if (/\.webm$|\.mp4$/.test(thumbs[i].pathname)) { setupVideo(thumbs[i], thumbs[i].href); } else { var m = thumbs[i].search.match(/\bv=([^&]*)/); if (m != null) { var url = decodeURIComponent(m[1]); - if (/\.webm$/.test(url)) setupVideo(thumbs[i], url); + if (/\.webm$|\.mp4$/.test(url)) setupVideo(thumbs[i], url); } } } |
