mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 12:07:34 +09:00
parent
d7738a4639
commit
77006c3f17
3 changed files with 13 additions and 56 deletions
|
|
@ -14,13 +14,6 @@ var gSyncUtils = {
|
|||
return this.bundle = Services.strings.createBundle("chrome://browser/locale/syncSetup.properties");
|
||||
},
|
||||
|
||||
get fxAccountsEnabled() {
|
||||
let service = Components.classes["@mozilla.org/weave/service;1"]
|
||||
.getService(Components.interfaces.nsISupports)
|
||||
.wrappedJSObject;
|
||||
return service.fxAccountsEnabled;
|
||||
},
|
||||
|
||||
// opens in a new window if we're in a modal prefwindow world, in a new tab otherwise
|
||||
_openLink: function (url) {
|
||||
let thisDocEl = document.documentElement,
|
||||
|
|
@ -78,8 +71,7 @@ var gSyncUtils = {
|
|||
},
|
||||
|
||||
get tosURL() {
|
||||
let root = this.fxAccountsEnabled ? "fxa." : "";
|
||||
return Weave.Svc.Prefs.get(root + "termsURL");
|
||||
return Weave.Svc.Prefs.get("termsURL");
|
||||
},
|
||||
|
||||
openToS: function () {
|
||||
|
|
@ -87,8 +79,7 @@ var gSyncUtils = {
|
|||
},
|
||||
|
||||
get privacyPolicyURL() {
|
||||
let root = this.fxAccountsEnabled ? "fxa." : "";
|
||||
return Weave.Svc.Prefs.get(root + "privacyURL");
|
||||
return Weave.Svc.Prefs.get("privacyURL");
|
||||
},
|
||||
|
||||
openPrivacyPolicy: function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue