mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
fix console warning for decodeShortURI()
This commit is contained in:
parent
c5d178779d
commit
7542eddf5b
@ -832,17 +832,18 @@ function fetchShortenedURI(req) {
|
|||||||
console.warn('can\'t fetch URI "' + req + '": daemon is obsolete, version 0.9.35 or higher is required');
|
console.warn('can\'t fetch URI "' + req + '": daemon is obsolete, version 0.9.35 or higher is required');
|
||||||
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) {
|
||||||
|
@ -163,7 +163,7 @@ function _decodeshorturlInternal(locator, timeoutArgs) {
|
|||||||
_dhtgetDequeue();
|
_dhtgetDequeue();
|
||||||
}, locator,
|
}, locator,
|
||||||
function(req, ret) {
|
function(req, ret) {
|
||||||
console.warn('can\'t fetch URI "' + req + '" — RPC "decodeshorturl" error: ' + (ret && ret.message) ? ret.message : ret);
|
console.warn('RPC "decodeshorturl" error: ' + (ret && ret.message) ? ret.message : ret);
|
||||||
_dhtgetsInProgress--;
|
_dhtgetsInProgress--;
|
||||||
_dhtgetAbortPending(req);
|
_dhtgetAbortPending(req);
|
||||||
_dhtgetDequeue();
|
_dhtgetDequeue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user