diff options
author | Phie <phie@phie.ovh> | 2020-06-22 22:19:24 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2020-06-22 22:19:24 +0300 |
commit | 52baa32d3f232f166ed7c3f5eb6a80665ac242c7 (patch) | |
tree | 887fe1116ddd5b2f361481bca39827dc10b95907 /utils | |
parent | aa15cca563e89ac95746d00c7a2f6b571b246337 (diff) |
Preparing CarnetAndroid to be compatible with JS opus encoder
Diffstat (limited to 'utils')
-rw-r--r-- | utils/file_utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/file_utils.js b/utils/file_utils.js index 1b50402..bd28517 100644 --- a/utils/file_utils.js +++ b/utils/file_utils.js @@ -21,7 +21,7 @@ FileUtils.isFileImage = function (filePath) { } FileUtils.isFileAudio = function (filePath) { filePath = filePath.toLowerCase() - return filePath.endsWith(".opus") || filePath.endsWith(".mp3") || filePath.endsWith(".ogg") || filePath.endsWith(".flac") || filePath.endsWith(".wav") + return filePath.endsWith(".opus") || filePath.endsWith(".mp3") || filePath.endsWith(".ogg") || filePath.endsWith(".flac") || filePath.endsWith(".wav") || filePath.endsWith(".m4a") || filePath.endsWith(".webm") } FileUtils.getExtensionFromMimetype = function (mimetype) { switch (mimetype) { |