summaryrefslogtreecommitdiffstats
path: root/toolkit/components/jsdownloads/src/DownloadUIHelper.jsm
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-06 08:31:14 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:37:58 +0200
commit419abfb09f4ab5aac0f4e315c0dd20716e6fe29b (patch)
tree1cfaa1c7f678965ff811f5eb00a4028dd708c85b /toolkit/components/jsdownloads/src/DownloadUIHelper.jsm
parent4e58dab0a13b4dc61f5849b11cb81c6c53402536 (diff)
downloadUXP-419abfb09f4ab5aac0f4e315c0dd20716e6fe29b.tar
UXP-419abfb09f4ab5aac0f4e315c0dd20716e6fe29b.tar.gz
UXP-419abfb09f4ab5aac0f4e315c0dd20716e6fe29b.tar.lz
UXP-419abfb09f4ab5aac0f4e315c0dd20716e6fe29b.tar.xz
UXP-419abfb09f4ab5aac0f4e315c0dd20716e6fe29b.zip
Issue #65 - Remove AppConstants from toolkit/components/jsdownloads
Diffstat (limited to 'toolkit/components/jsdownloads/src/DownloadUIHelper.jsm')
-rw-r--r--toolkit/components/jsdownloads/src/DownloadUIHelper.jsm23
1 files changed, 11 insertions, 12 deletions
diff --git a/toolkit/components/jsdownloads/src/DownloadUIHelper.jsm b/toolkit/components/jsdownloads/src/DownloadUIHelper.jsm
index ce165205b..d4ce248e3 100644
--- a/toolkit/components/jsdownloads/src/DownloadUIHelper.jsm
+++ b/toolkit/components/jsdownloads/src/DownloadUIHelper.jsm
@@ -22,7 +22,6 @@ const Cu = Components.utils;
const Cr = Components.results;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-Cu.import("resource://gre/modules/AppConstants.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "OS",
"resource://gre/modules/osfile.jsm");
@@ -186,17 +185,17 @@ this.DownloadPrompter.prototype = {
switch (aPromptType) {
case this.ON_QUIT:
title = s.quitCancelDownloadsAlertTitle;
- if (AppConstants.platform != "macosx") {
- message = aDownloadsCount > 1
- ? s.quitCancelDownloadsAlertMsgMultiple(aDownloadsCount)
- : s.quitCancelDownloadsAlertMsg;
- cancelButton = s.dontQuitButtonWin;
- } else {
- message = aDownloadsCount > 1
- ? s.quitCancelDownloadsAlertMsgMacMultiple(aDownloadsCount)
- : s.quitCancelDownloadsAlertMsgMac;
- cancelButton = s.dontQuitButtonMac;
- }
+#ifdef XP_MACOSX
+ message = aDownloadsCount > 1
+ ? s.quitCancelDownloadsAlertMsgMacMultiple(aDownloadsCount)
+ : s.quitCancelDownloadsAlertMsgMac;
+ cancelButton = s.dontQuitButtonMac;
+#else
+ message = aDownloadsCount > 1
+ ? s.quitCancelDownloadsAlertMsgMultiple(aDownloadsCount)
+ : s.quitCancelDownloadsAlertMsg;
+ cancelButton = s.dontQuitButtonWin;
+#endif
break;
case this.ON_OFFLINE:
title = s.offlineCancelDownloadsAlertTitle;