mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 00:48:05 +00:00
support decodeShortURI returning an array [url,mimetype] instead of just url string
This commit is contained in:
parent
1da57627f3
commit
dccc5695e0
@ -898,7 +898,8 @@ function fetchShortenedURI(req) {
|
||||
);
|
||||
}
|
||||
|
||||
function applyShortenedURI(short, long) {
|
||||
function applyShortenedURI(short, uriAndMimetype) {
|
||||
var long = (uriAndMimetype instanceof Array) ? uriAndMimetype[0] : uriAndMimetype;
|
||||
var elems = getElem('.link-shortened[href="' + short + '"]')
|
||||
.attr('href', long)
|
||||
.removeClass('link-shortened')
|
||||
|
Loading…
Reference in New Issue
Block a user