HTTPS 페이지에서는 긴 주소를 풀지 않음

This commit is contained in:
YJSoft 2016-03-06 21:08:16 +09:00
parent 26d4fe976e
commit dff2578df3

View file

@ -57,7 +57,9 @@
for (var j = 0, l = shortURLList.length; j < l; j++) {
var regExp = new RegExp('://' + shortURLList[j] + '/', "i");
if (resourceURL.match(regExp) !== null) {
provider = $.fn.oembed.getOEmbedProvider(resourceURL);
if (!provider && window.location.protocol !== "https:" && resourceURL.match(regExp) !== null) {
//AJAX to http://api.longurl.org/v2/expand?url=http://bit.ly/JATvIs&format=json&callback=hhh
var ajaxopts = $.extend({
url: "http://api.longurl.org/v2/expand",
@ -96,7 +98,6 @@
return container;
}
}
provider = $.fn.oembed.getOEmbedProvider(resourceURL);
//remove fallback
if (!!settings.fallback === false) {