SAAS-1150: Null mime type breaks the scheduled shows tab
This commit is contained in:
parent
16a0172542
commit
aed18c534d
|
@ -2,6 +2,10 @@
|
|||
function isAudioSupported(mime){
|
||||
var audio = new Audio();
|
||||
|
||||
if ((typeof mime) !== "string" || (mime === null)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var bMime = null;
|
||||
if (mime.indexOf("ogg") != -1 || mime.indexOf("vorbis") != -1) {
|
||||
bMime = 'audio/ogg; codecs="vorbis"';
|
||||
|
|
Loading…
Reference in New Issue