fixes importing OGGs in Firefox

pull/89/head
Bernat Romagosa 2019-07-29 10:19:44 +02:00
rodzic 140107516b
commit a73c562b11
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)) {