detect files with uppercase extensions as playable (#434)
This commit is contained in:
@@ -15,12 +15,12 @@ function isPlayable (file) {
|
||||
}
|
||||
|
||||
function isVideo (file) {
|
||||
var ext = path.extname(file.name)
|
||||
var ext = path.extname(file.name).toLowerCase()
|
||||
return ['.mp4', '.m4v', '.webm', '.mov', '.mkv'].indexOf(ext) !== -1
|
||||
}
|
||||
|
||||
function isAudio (file) {
|
||||
var ext = path.extname(file.name)
|
||||
var ext = path.extname(file.name).toLowerCase()
|
||||
return ['.mp3', '.aac', '.ogg', '.wav'].indexOf(ext) !== -1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user