mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #991 Part 6: Services
This commit is contained in:
parent
f1d39b624e
commit
c54c6d3bd2
3 changed files with 3 additions and 15 deletions
|
|
@ -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 }));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue