mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
HTTPS 페이지에서는 긴 주소를 풀지 않음
This commit is contained in:
parent
26d4fe976e
commit
dff2578df3
1 changed files with 3 additions and 2 deletions
|
|
@ -56,8 +56,10 @@
|
|||
//Check if shorten URL
|
||||
for (var j = 0, l = shortURLList.length; j < l; j++) {
|
||||
var regExp = new RegExp('://' + shortURLList[j] + '/', "i");
|
||||
|
||||
provider = $.fn.oembed.getOEmbedProvider(resourceURL);
|
||||
|
||||
if (resourceURL.match(regExp) !== null) {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue