mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-21 08:30:23 -07:00
Fixed Postbox pref
This commit is contained in:
parent
5eee3e01ee
commit
42d6728f0d
@ -9,7 +9,7 @@ var mailHops =
|
|||||||
msgURI: null,
|
msgURI: null,
|
||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
options: {
|
options: {
|
||||||
'version':'MailHops Plugin 3.1.7',
|
'version':'MailHops Plugin 3.1.8',
|
||||||
'lan':'en',
|
'lan':'en',
|
||||||
'unit':'mi',
|
'unit':'mi',
|
||||||
'api_http':'https://',
|
'api_http':'https://',
|
||||||
@ -37,7 +37,6 @@ mailHops.LOG = function(msg) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mailHops.init = function() {
|
mailHops.init = function() {
|
||||||
|
|
||||||
//load preferences
|
//load preferences
|
||||||
mailHops.loadPref();
|
mailHops.loadPref();
|
||||||
|
|
||||||
@ -330,7 +329,11 @@ 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." ) ;
|
||||||
|
try {
|
||||||
|
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranchInternal ) ;
|
||||||
|
} catch (err){
|
||||||
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranch ) ;
|
mailHops._branch.QueryInterface( Components.interfaces.nsIPrefBranch ) ;
|
||||||
|
}
|
||||||
mailHops._branch.addObserver( "" , mailHops , false ) ;
|
mailHops._branch.addObserver( "" , mailHops , false ) ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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.7</em:version>
|
<em:version>3.1.8</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