mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 07:04:24 +00:00
fix search in cached shortened URIs in newShortURI()
This commit is contained in:
parent
36155be0cf
commit
c1aa85fc96
@ -326,10 +326,12 @@ function newShortURI(uri, cbFunc, cbReq) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (var i in twister.URIs)
|
||||
if (twister.URIs[i] === uri) {
|
||||
for (var short in twister.URIs)
|
||||
if (twister.URIs[short] instanceof Array ?
|
||||
twister.URIs[short][0] === uri : twister.URIs[short] === uri) {
|
||||
if (typeof cbFunc === 'function')
|
||||
cbFunc(uri, i, cbReq);
|
||||
cbFunc(uri, short, cbReq);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user