summaryrefslogtreecommitdiffstats
path: root/services/crypto/modules/WeaveCrypto.js
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 21:06:29 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5 (patch)
tree8eb63f577991014f222446e117b300495cb15325 /services/crypto/modules/WeaveCrypto.js
parent1d0af8b59102331cba100529e1697f91faf0c86b (diff)
downloadUXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.gz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.lz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.xz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.zip
Issue #991 Part 6: Services
Diffstat (limited to 'services/crypto/modules/WeaveCrypto.js')
-rw-r--r--services/crypto/modules/WeaveCrypto.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/services/crypto/modules/WeaveCrypto.js b/services/crypto/modules/WeaveCrypto.js
index c040c4f6f..d0d5bdb18 100644
--- a/services/crypto/modules/WeaveCrypto.js
+++ b/services/crypto/modules/WeaveCrypto.js
@@ -51,11 +51,7 @@ WeaveCrypto.prototype = {
this.prefBranch = Services.prefs.getBranch("services.sync.log.");
this.prefBranch.addObserver("cryptoDebug", this.observer, false);
this.observer._self = this;
- try {
- this.debug = this.prefBranch.getBoolPref("cryptoDebug");
- } catch (x) {
- this.debug = false;
- }
+ this.debug = this.prefBranch.getBoolPref("cryptoDebug", false);
XPCOMUtils.defineLazyGetter(this, 'encoder', () => new TextEncoder(UTF_LABEL));
XPCOMUtils.defineLazyGetter(this, 'decoder', () => new TextDecoder(UTF_LABEL, { fatal: true }));
},