mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-16 22:30:09 -07:00
Fixes for Thunderbird 60
This commit is contained in:
parent
c8158b3d4a
commit
5eee3e01ee
@ -9,7 +9,7 @@ var mailHops =
|
|||||||
msgURI: null,
|
msgURI: null,
|
||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
options: {
|
options: {
|
||||||
'version':'MailHops Plugin 3.1.6',
|
'version':'MailHops Plugin 3.1.7',
|
||||||
'lan':'en',
|
'lan':'en',
|
||||||
'unit':'mi',
|
'unit':'mi',
|
||||||
'api_http':'https://',
|
'api_http':'https://',
|
||||||
@ -37,8 +37,6 @@ mailHops.LOG = function(msg) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mailHops.init = function() {
|
mailHops.init = function() {
|
||||||
//import nativeJSON
|
|
||||||
var nativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(Components.interfaces.nsIJSON);
|
|
||||||
|
|
||||||
//load preferences
|
//load preferences
|
||||||
mailHops.loadPref();
|
mailHops.loadPref();
|
||||||
@ -332,7 +330,7 @@ mailHops.setupEventListener = function(){
|
|||||||
mailHops.registerObserver = function(){
|
mailHops.registerObserver = function(){
|
||||||
var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService( Components.interfaces.nsIPrefService ) ;
|
var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService( Components.interfaces.nsIPrefService ) ;
|
||||||
mailHops._branch = prefService.getBranch( "mail.mailHops." ) ;
|
mailHops._branch = prefService.getBranch( "mail.mailHops." ) ;
|
||||||
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranchInternal ) ;
|
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranch ) ;
|
||||||
mailHops._branch.addObserver( "" , mailHops , false ) ;
|
mailHops._branch.addObserver( "" , mailHops , false ) ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -162,7 +162,6 @@ var mailHopPreferences = {
|
|||||||
|
|
||||||
if(!!this.api_key && this.api_key.value != ''){
|
if(!!this.api_key && this.api_key.value != ''){
|
||||||
var xmlhttp = new XMLHttpRequest();
|
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,
|
var apiBase = this.api_http.value+this.api_host.value,
|
||||||
accountURL = '/v2/accounts/?api_key='+this.api_key.value.trim(),
|
accountURL = '/v2/accounts/?api_key='+this.api_key.value.trim(),
|
||||||
api_key = this.api_key.value.trim(),
|
api_key = this.api_key.value.trim(),
|
||||||
@ -208,7 +207,6 @@ var mailHopPreferences = {
|
|||||||
|
|
||||||
TestConnection: function(){
|
TestConnection: function(){
|
||||||
var xmlhttp = new XMLHttpRequest();
|
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,
|
var apiBase = this.api_http.value+this.api_host.value,
|
||||||
lookupURL = '/v1/lookup/?healthcheck';
|
lookupURL = '/v1/lookup/?healthcheck';
|
||||||
|
|
||||||
|
@ -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>3.1.6</em:version>
|
<em:version>3.1.7</em:version>
|
||||||
|
|
||||||
<em:name>MailHops</em:name>
|
<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>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user