diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-01 21:54:04 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-01 21:54:04 -0500 |
commit | f9ddbe36407c86574c22d85aca319c00d5342600 (patch) | |
tree | 0f96d041ecec6b8016922441d119850cc9e1a69f /mailnews/base/src/nsMailNewsCommandLineHandler.js | |
parent | 406fc463e051d69a2c8647a2bbcc6dfebebddad7 (diff) | |
download | UXP-f9ddbe36407c86574c22d85aca319c00d5342600.tar UXP-f9ddbe36407c86574c22d85aca319c00d5342600.tar.gz UXP-f9ddbe36407c86574c22d85aca319c00d5342600.tar.lz UXP-f9ddbe36407c86574c22d85aca319c00d5342600.tar.xz UXP-f9ddbe36407c86574c22d85aca319c00d5342600.zip |
Issue #65 - Remove AppConstants from mailnews/
Diffstat (limited to 'mailnews/base/src/nsMailNewsCommandLineHandler.js')
-rw-r--r-- | mailnews/base/src/nsMailNewsCommandLineHandler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailnews/base/src/nsMailNewsCommandLineHandler.js b/mailnews/base/src/nsMailNewsCommandLineHandler.js index 3a85ec336..5dda7f7dc 100644 --- a/mailnews/base/src/nsMailNewsCommandLineHandler.js +++ b/mailnews/base/src/nsMailNewsCommandLineHandler.js @@ -8,7 +8,6 @@ var Cr = Components.results; Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); -Components.utils.import("resource://gre/modules/AppConstants.jsm"); var MAPI_STARTUP_ARG = "MapiStartup"; var MESSAGE_ID_PARAM = "?messageid="; @@ -88,8 +87,8 @@ var nsMailNewsCommandLineHandler = aCommandLine.preventDefault = true; MailUtils.displayMessage(msgHdr); } - else if (AppConstants.MOZ_APP_NAME == "seamonkey" && - /\.(eml|msg)$/i.test(mailURL)) { +#ifdef MOZ_SUITE + else if (/\.(eml|msg)$/i.test(mailURL)) { try { let file = aCommandLine.resolveFile(mailURL);
// No point in trying to open a file if it doesn't exist or is empty
@@ -109,6 +108,7 @@ var nsMailNewsCommandLineHandler = catch (e) { } } +#endif else { dump("Unrecognized URL: " + mailURL + "\n"); Services.console.logStringMessage("Unrecognized URL: " + mailURL); |