mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-17 23:00:10 -07:00
Updated display of first hop
This commit is contained in:
parent
0da1fc046c
commit
f0f165527a
@ -425,7 +425,7 @@ var mailHopsDisplay =
|
|||||||
if(!!city && !!state)
|
if(!!city && !!state)
|
||||||
displayText = city+', '+state;
|
displayText = city+', '+state;
|
||||||
else if(!!city)
|
else if(!!city)
|
||||||
displayText = city;
|
displayText = city+', '+countryCode;
|
||||||
else if(!!countryName)
|
else if(!!countryName)
|
||||||
displayText = countryName;
|
displayText = countryName;
|
||||||
|
|
||||||
|
@ -193,13 +193,13 @@ var mailHopsDisplay =
|
|||||||
for(var i=0; i<response.route.length;i++){
|
for(var i=0; i<response.route.length;i++){
|
||||||
//get the first hop location
|
//get the first hop location
|
||||||
if(!gotFirst && !response.route[i].private && !response.route[i].client){
|
if(!gotFirst && !response.route[i].private && !response.route[i].client){
|
||||||
if(response.route[i].countryCode)
|
if(!!response.route[i].countryCode)
|
||||||
image='chrome://mailhops/content/images/flags/'+response.route[i].countryCode.toLowerCase()+'.png';
|
image='chrome://mailhops/content/images/flags/'+response.route[i].countryCode.toLowerCase()+'.png';
|
||||||
if(response.route[i].city)
|
if(!!response.route[i].city)
|
||||||
city=response.route[i].city;
|
city=response.route[i].city;
|
||||||
if(response.route[i].state)
|
if(!!response.route[i].state)
|
||||||
state=response.route[i].state;
|
state=response.route[i].state;
|
||||||
if(response.route[i].countryName)
|
if(!!response.route[i].countryName)
|
||||||
countryName=response.route[i].countryName;
|
countryName=response.route[i].countryName;
|
||||||
gotFirst=true;
|
gotFirst=true;
|
||||||
}
|
}
|
||||||
@ -286,7 +286,7 @@ var mailHopsDisplay =
|
|||||||
if(!!city && !!state)
|
if(!!city && !!state)
|
||||||
displayText = city+', '+state;
|
displayText = city+', '+state;
|
||||||
else if(!!city)
|
else if(!!city)
|
||||||
displayText = city;
|
displayText = city+', '+countryCode;
|
||||||
else if(!!countryName)
|
else if(!!countryName)
|
||||||
displayText = countryName;
|
displayText = countryName;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user