summaryrefslogtreecommitdiffstats
path: root/toolkit/components/passwordmgr/OSCrypto.jsm
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-06 10:39:22 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:39:35 +0200
commit30ec922d7e7a71e75d9bd636647e8704aa6f1f0c (patch)
tree289d8332bbb9c6a14adf011da8b20792cbb3bd50 /toolkit/components/passwordmgr/OSCrypto.jsm
parent1000488a5bcdc5078b96c1781a260932c5ae39f1 (diff)
downloadUXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.gz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.lz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.xz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.zip
Issue #65 - Remove AppConstants from toolkit/components/passwordmgr
Diffstat (limited to 'toolkit/components/passwordmgr/OSCrypto.jsm')
-rw-r--r--toolkit/components/passwordmgr/OSCrypto.jsm11
1 files changed, 5 insertions, 6 deletions
diff --git a/toolkit/components/passwordmgr/OSCrypto.jsm b/toolkit/components/passwordmgr/OSCrypto.jsm
index 04254f66f..3d2b27c4e 100644
--- a/toolkit/components/passwordmgr/OSCrypto.jsm
+++ b/toolkit/components/passwordmgr/OSCrypto.jsm
@@ -8,15 +8,14 @@
"use strict";
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
this.EXPORTED_SYMBOLS = ["OSCrypto"];
var OSCrypto = {};
-if (AppConstants.platform == "win") {
- Services.scriptloader.loadSubScript("resource://gre/modules/OSCrypto_win.js", this);
-} else {
- throw new Error("OSCrypto.jsm isn't supported on this platform");
-}
+#ifdef XP_WIN
+Services.scriptloader.loadSubScript("resource://gre/modules/OSCrypto_win.js", this);
+#else
+throw new Error("OSCrypto.jsm isn't supported on this platform");
+#endif