diff --git a/js/interface_common.js b/js/interface_common.js index 3b6a15f..04dc8f7 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -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')