|
|
@ -833,16 +833,17 @@ function fetchShortenedURI(req) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
decodeshorturl( req, |
|
|
|
decodeShortURI(req, |
|
|
|
function (req, ret) { |
|
|
|
function (req, ret) { |
|
|
|
if( ret ) { |
|
|
|
if (ret) { |
|
|
|
twister.URIs[req] = ret; |
|
|
|
twister.URIs[req] = ret; |
|
|
|
$.localStorage.set('twistaURIs', twister.URIs); |
|
|
|
$.localStorage.set('twistaURIs', twister.URIs); |
|
|
|
applyShortenedURI(req, ret); |
|
|
|
applyShortenedURI(req, ret); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.warn('can\'t fetch URI "' + req + '": ' + ret.message); |
|
|
|
console.warn('can\'t fetch URI "' + req + '": null response'); |
|
|
|
} |
|
|
|
} |
|
|
|
}, req); |
|
|
|
}, req |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function applyShortenedURI(short, long) { |
|
|
|
function applyShortenedURI(short, long) { |
|
|
|