Browse Source

Merge pull request #781 from elbywan/patch-1

Https media type
pull/782/head
Joe Germuska 10 years ago
parent
commit
c1d3d44515
  1. 4
      source/js/Core/Media/VMM.MediaType.js

4
source/js/Core/Media/VMM.MediaType.js

@ -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;
@ -156,4 +156,4 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
}
return false;
}
}
}

Loading…
Cancel
Save