Skip to content

Commit

Permalink
Https media type
Browse files Browse the repository at this point in the history
When a media url (json conf : assets / media) starting with https:// is parsed, the determined type is "unknown media" which leads to a plain text url in the timeline.
  • Loading branch information
elbywan committed Apr 22, 2015
1 parent 4101236 commit d8dcf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/js/Core/Media/VMM.MediaType.js
Expand Up @@ -133,7 +133,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
media.id = wiki_id.replace(" ", "%20");
media.lang = d.split("//")[1].split(".wikipedia")[0];
success = true;
} else if (d.indexOf('http://') == 0) {
} else if (d.indexOf('http://') == 0 || d.indexOf('https://') == 0) {
media.type = "website";
media.id = d;
success = true;
Expand All @@ -156,4 +156,4 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
}
return false;
}
}
}

0 comments on commit d8dcf85

Please sign in to comment.