1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-16 14:20:10 -07:00

Fixes for Thunderbird 60

This commit is contained in:
Andrew Van Tassel 2018-08-23 17:10:13 -06:00
parent c8158b3d4a
commit 5eee3e01ee
3 changed files with 3 additions and 7 deletions

View File

@ -9,7 +9,7 @@ var mailHops =
msgURI: null,
isLoaded: false,
options: {
'version':'MailHops Plugin 3.1.6',
'version':'MailHops Plugin 3.1.7',
'lan':'en',
'unit':'mi',
'api_http':'https://',
@ -37,8 +37,6 @@ mailHops.LOG = function(msg) {
};
mailHops.init = function() {
//import nativeJSON
var nativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(Components.interfaces.nsIJSON);
//load preferences
mailHops.loadPref();
@ -332,7 +330,7 @@ mailHops.setupEventListener = function(){
mailHops.registerObserver = function(){
var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService( Components.interfaces.nsIPrefService ) ;
mailHops._branch = prefService.getBranch( "mail.mailHops." ) ;
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranchInternal ) ;
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranch ) ;
mailHops._branch.addObserver( "" , mailHops , false ) ;
};

View File

@ -162,7 +162,6 @@ var mailHopPreferences = {
if(!!this.api_key && this.api_key.value != ''){
var xmlhttp = new XMLHttpRequest();
var nativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(Components.interfaces.nsIJSON);
var apiBase = this.api_http.value+this.api_host.value,
accountURL = '/v2/accounts/?api_key='+this.api_key.value.trim(),
api_key = this.api_key.value.trim(),
@ -208,7 +207,6 @@ var mailHopPreferences = {
TestConnection: function(){
var xmlhttp = new XMLHttpRequest();
var nativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(Components.interfaces.nsIJSON);
var apiBase = this.api_http.value+this.api_host.value,
lookupURL = '/v1/lookup/?healthcheck';

View File

@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:type>2</em:type>
<em:id>thunderbird@mailhops.com</em:id>
<em:version>3.1.6</em:version>
<em:version>3.1.7</em:version>
<em:name>MailHops</em:name>
<em:description>MailHops maps the route an email took to get to you. Displaying the senders location, weather, user-agent and authentication used.</em:description>