Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2020-06-22 22:19:24 +0300
committerPhie <phie@phie.ovh>2020-06-22 22:19:24 +0300
commit52baa32d3f232f166ed7c3f5eb6a80665ac242c7 (patch)
tree887fe1116ddd5b2f361481bca39827dc10b95907 /utils
parentaa15cca563e89ac95746d00c7a2f6b571b246337 (diff)
Preparing CarnetAndroid to be compatible with JS opus encoder
Diffstat (limited to 'utils')
-rw-r--r--utils/file_utils.js2
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) {