Merge pull request #2467 from bromagosa/fix-OGG-firefox

fixes importing OGGs in Firefox
pull/89/head
Jens Mönig 2019-08-06 08:54:10 +02:00 zatwierdzone przez GitHub
commit b08ffe7348
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -11771,7 +11771,10 @@ HandMorph.prototype.processDrop = function (event) {
readSVG(file);
} else if (file.type.indexOf("image") === 0) {
readImage(file);
} else if (file.type.indexOf("audio") === 0) {
} else if (file.type.indexOf("audio") === 0 ||
file.type.indexOf("ogg") > -1) {
// check the file-extension because Firefox
// thinks OGGs are videos
readAudio(file);
} else if ((file.type.indexOf("text") === 0) ||
contains(['txt', 'csv', 'json'], suffix)) {