kopia lustrzana https://github.com/backface/turtlestitch
fixes importing OGGs in Firefox
rodzic
140107516b
commit
a73c562b11
|
|
@ -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)) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue