mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-21 08:30:23 -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
|
||||
, 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:[] }
|
||||
, client_location: null
|
||||
};
|
||||
@ -363,9 +363,6 @@ mailHops.lookupRoute = function(header_route){
|
||||
if(mailHops.options.fkey != '')
|
||||
lookupURL += '&fkey='+mailHops.options.fkey;
|
||||
|
||||
if(mailHops.options.client_location != '')
|
||||
lookupURL+='&c=0';
|
||||
|
||||
mailHops.LOG(lookupURL);
|
||||
|
||||
//check for cache
|
||||
|
@ -302,6 +302,7 @@ var mailHopsDisplay =
|
||||
|
||||
if(this.options.client_location){
|
||||
var client_location = JSON.parse(this.options.client_location);
|
||||
if(response.route[response.route.length-1].ip != client_location.route[0].ip)
|
||||
response.route.push(client_location.route[0]);
|
||||
}
|
||||
|
||||
|
@ -185,6 +185,7 @@ var mailHopsDisplay =
|
||||
|
||||
if(this.options.client_location){
|
||||
var client_location = JSON.parse(this.options.client_location);
|
||||
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++){
|
||||
|
@ -5,7 +5,7 @@
|
||||
<Description about="urn:mozilla:install-manifest">
|
||||
<em:type>2</em:type>
|
||||
<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: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