mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-22 00:50:09 -07:00
Removed client logic to fix distance message traveled display
This commit is contained in:
parent
a317fc87a8
commit
4a4079eca8
@ -8,7 +8,7 @@ var mailHops =
|
|||||||
{
|
{
|
||||||
msgURI: null
|
msgURI: null
|
||||||
, isLoaded: false
|
, isLoaded: false
|
||||||
, options: {'version':'MailHops Plugin 1.0.3','lan':'en','unit':'mi','api_url':'http://api.mailhops.com','debug':false}
|
, options: {'version':'MailHops Plugin 1.0.4','lan':'en','unit':'mi','api_url':'http://api.mailhops.com','debug':false}
|
||||||
, message: { secure:[] }
|
, message: { secure:[] }
|
||||||
, client_location: null
|
, client_location: null
|
||||||
};
|
};
|
||||||
@ -363,9 +363,6 @@ mailHops.lookupRoute = function(header_route){
|
|||||||
if(mailHops.options.fkey != '')
|
if(mailHops.options.fkey != '')
|
||||||
lookupURL += '&fkey='+mailHops.options.fkey;
|
lookupURL += '&fkey='+mailHops.options.fkey;
|
||||||
|
|
||||||
if(mailHops.options.client_location != '')
|
|
||||||
lookupURL+='&c=0';
|
|
||||||
|
|
||||||
mailHops.LOG(lookupURL);
|
mailHops.LOG(lookupURL);
|
||||||
|
|
||||||
//check for cache
|
//check for cache
|
||||||
|
@ -302,7 +302,8 @@ var mailHopsDisplay =
|
|||||||
|
|
||||||
if(this.options.client_location){
|
if(this.options.client_location){
|
||||||
var client_location = JSON.parse(this.options.client_location);
|
var client_location = JSON.parse(this.options.client_location);
|
||||||
response.route.push(client_location.route[0]);
|
if(response.route[response.route.length-1].ip != client_location.route[0].ip)
|
||||||
|
response.route.push(client_location.route[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(var i=0; i<response.route.length;i++){
|
for(var i=0; i<response.route.length;i++){
|
||||||
|
@ -185,7 +185,8 @@ var mailHopsDisplay =
|
|||||||
|
|
||||||
if(this.options.client_location){
|
if(this.options.client_location){
|
||||||
var client_location = JSON.parse(this.options.client_location);
|
var client_location = JSON.parse(this.options.client_location);
|
||||||
response.route.push(client_location.route[0]);
|
if(response.route[response.route.length-1].ip != client_location.route[0].ip)
|
||||||
|
response.route.push(client_location.route[0]);
|
||||||
}
|
}
|
||||||
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
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:type>2</em:type>
|
<em:type>2</em:type>
|
||||||
<em:id>thunderbird@mailhops.com</em:id>
|
<em:id>thunderbird@mailhops.com</em:id>
|
||||||
<em:version>1.0.3</em:version>
|
<em:version>1.0.4</em:version>
|
||||||
|
|
||||||
<em:name>MailHops</em:name>
|
<em:name>MailHops</em:name>
|
||||||
<em:description>MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.</em:description>
|
<em:description>MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.</em:description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user