mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Remove fxAccountsEnabled()
This commit is contained in:
parent
05ce0cf80e
commit
486cc48e33
4 changed files with 7 additions and 45 deletions
|
|
@ -43,8 +43,7 @@ SyncScheduler.prototype = {
|
|||
.getService(Ci.nsISupports)
|
||||
.wrappedJSObject;
|
||||
|
||||
let part = service.fxAccountsEnabled ? "fxa" : "sync11";
|
||||
let prefSDInterval = "scheduler." + part + ".singleDeviceInterval";
|
||||
let prefSDInterval = "scheduler.sync11.singleDeviceInterval";
|
||||
this.singleDeviceInterval = Svc.Prefs.get(prefSDInterval) * 1000;
|
||||
|
||||
this.idleInterval = Svc.Prefs.get("scheduler.idleInterval") * 1000;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ this.Status = {
|
|||
let service = Components.classes["@mozilla.org/weave/service;1"]
|
||||
.getService(Components.interfaces.nsISupports)
|
||||
.wrappedJSObject;
|
||||
let idClass = service.fxAccountsEnabled ? BrowserIDManager : IdentityManager;
|
||||
let idClass = IdentityManager;
|
||||
this.__authManager = new idClass();
|
||||
// .initialize returns a promise, so we need to spin until it resolves.
|
||||
let cb = Async.makeSpinningCallback();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue