mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +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
|
//Check if shorten URL
|
||||||
for (var j = 0, l = shortURLList.length; j < l; j++) {
|
for (var j = 0, l = shortURLList.length; j < l; j++) {
|
||||||
var regExp = new RegExp('://' + shortURLList[j] + '/', "i");
|
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
|
//AJAX to http://api.longurl.org/v2/expand?url=http://bit.ly/JATvIs&format=json&callback=hhh
|
||||||
var ajaxopts = $.extend({
|
var ajaxopts = $.extend({
|
||||||
url: "http://api.longurl.org/v2/expand",
|
url: "http://api.longurl.org/v2/expand",
|
||||||
|
|
@ -96,7 +98,6 @@
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
provider = $.fn.oembed.getOEmbedProvider(resourceURL);
|
|
||||||
|
|
||||||
//remove fallback
|
//remove fallback
|
||||||
if (!!settings.fallback === false) {
|
if (!!settings.fallback === false) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue