* remove calls to old/deprecated interfaces (reported by AMO)
* reset logging level
This commit is contained in:
parent
1fc3b93bd7
commit
eda4302ba5
|
@ -6,6 +6,7 @@ const Cc = Components.classes;
|
|||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource:///modules/mailServices.js");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||
Cu.import("resource://firetray/commons.js");
|
||||
|
@ -428,9 +429,7 @@ firetray.Handler = {
|
|||
openMailMessage: function() {
|
||||
try {
|
||||
var aURI = Services.io.newURI("mailto:", null, null);
|
||||
var msgComposeService = Cc["@mozilla.org/messengercompose;1"]
|
||||
.getService(Ci.nsIMsgComposeService);
|
||||
msgComposeService.OpenComposeWindowWithURI(null, aURI);
|
||||
MailServices.compose.OpenComposeWindowWithURI(null, aURI);
|
||||
} catch (x) { log.error(x); }
|
||||
},
|
||||
|
||||
|
|
|
@ -321,8 +321,6 @@ firetray.Messaging = {
|
|||
try {
|
||||
// create a file for the process
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
if (!file.initWithPath)
|
||||
file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); // deprecated in Gecko 14
|
||||
file.initWithPath(filepath);
|
||||
|
||||
// create the process
|
||||
|
|
|
@ -6,7 +6,7 @@ const Cc = Components.classes;
|
|||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
const FIRETRAY_LOG_LEVEL = "All"; // "All" for debugging
|
||||
const FIRETRAY_LOG_LEVEL = "Warn"; // "All" for debugging
|
||||
|
||||
const COLOR_NORMAL = "";
|
||||
const COLOR_RESET = "\033[m";
|
||||
|
|
Loading…
Reference in New Issue