mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
[Pale-Moon] Remove excess whitespace.
This commit is contained in:
parent
fcab070621
commit
b6b33a6b2a
73 changed files with 1883 additions and 1883 deletions
|
|
@ -17,7 +17,7 @@ const DEVICE_CONNECTED_PAGE = 2;
|
|||
|
||||
var gSyncAddDevice = {
|
||||
|
||||
init: function () {
|
||||
init: function() {
|
||||
this.pin1.setAttribute("maxlength", PIN_PART_LENGTH);
|
||||
this.pin2.setAttribute("maxlength", PIN_PART_LENGTH);
|
||||
this.pin3.setAttribute("maxlength", PIN_PART_LENGTH);
|
||||
|
|
@ -34,7 +34,7 @@ var gSyncAddDevice = {
|
|||
Weave.Service.scheduler.scheduleNextSync(0);
|
||||
},
|
||||
|
||||
onPageShow: function () {
|
||||
onPageShow: function() {
|
||||
this.wizard.getButton("back").hidden = true;
|
||||
|
||||
switch (this.wizard.pageIndex) {
|
||||
|
|
@ -60,7 +60,7 @@ var gSyncAddDevice = {
|
|||
}
|
||||
},
|
||||
|
||||
onWizardAdvance: function () {
|
||||
onWizardAdvance: function() {
|
||||
switch (this.wizard.pageIndex) {
|
||||
case ADD_DEVICE_PAGE:
|
||||
this.startTransfer();
|
||||
|
|
@ -72,21 +72,21 @@ var gSyncAddDevice = {
|
|||
return true;
|
||||
},
|
||||
|
||||
startTransfer: function () {
|
||||
startTransfer: function() {
|
||||
this.errorRow.hidden = true;
|
||||
// When onAbort is called, Weave may already be gone.
|
||||
const JPAKE_ERROR_USERABORT = Weave.JPAKE_ERROR_USERABORT;
|
||||
|
||||
let self = this;
|
||||
let jpakeclient = this._jpakeclient = new Weave.JPAKEClient({
|
||||
onPaired: function () {
|
||||
onPaired: function() {
|
||||
let credentials = {account: Weave.Service.identity.account,
|
||||
password: Weave.Service.identity.basicPassword,
|
||||
synckey: Weave.Service.identity.syncKey,
|
||||
serverURL: Weave.Service.serverURL};
|
||||
jpakeclient.sendAndComplete(credentials);
|
||||
},
|
||||
onComplete: function () {
|
||||
onComplete: function() {
|
||||
delete self._jpakeclient;
|
||||
self.wizard.pageIndex = DEVICE_CONNECTED_PAGE;
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ var gSyncAddDevice = {
|
|||
// device with which we just paired.
|
||||
Weave.Service.scheduler.scheduleNextSync(Weave.Service.scheduler.activeInterval);
|
||||
},
|
||||
onAbort: function (error) {
|
||||
onAbort: function(error) {
|
||||
delete self._jpakeclient;
|
||||
|
||||
// Aborted by user, ignore.
|
||||
|
|
@ -118,7 +118,7 @@ var gSyncAddDevice = {
|
|||
jpakeclient.pairWithPIN(pin, expectDelay);
|
||||
},
|
||||
|
||||
onWizardBack: function () {
|
||||
onWizardBack: function() {
|
||||
if (this.wizard.pageIndex != SYNC_KEY_PAGE)
|
||||
return true;
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ var gSyncAddDevice = {
|
|||
return false;
|
||||
},
|
||||
|
||||
onWizardCancel: function () {
|
||||
onWizardCancel: function() {
|
||||
if (this._jpakeclient) {
|
||||
this._jpakeclient.abort();
|
||||
delete this._jpakeclient;
|
||||
|
|
@ -134,7 +134,7 @@ var gSyncAddDevice = {
|
|||
return true;
|
||||
},
|
||||
|
||||
onTextBoxInput: function (textbox) {
|
||||
onTextBoxInput: function(textbox) {
|
||||
if (textbox && textbox.value.length == PIN_PART_LENGTH)
|
||||
this.nextFocusEl[textbox.id].focus();
|
||||
|
||||
|
|
@ -143,14 +143,14 @@ var gSyncAddDevice = {
|
|||
&& this.pin3.value.length == PIN_PART_LENGTH);
|
||||
},
|
||||
|
||||
goToSyncKeyPage: function () {
|
||||
goToSyncKeyPage: function() {
|
||||
this.wizard.pageIndex = SYNC_KEY_PAGE;
|
||||
}
|
||||
|
||||
};
|
||||
// onWizardAdvance() and onPageShow() are run before init() so we'll set
|
||||
// these up as lazy getters.
|
||||
["wizard", "pin1", "pin2", "pin3"].forEach(function (id) {
|
||||
["wizard", "pin1", "pin2", "pin3"].forEach(function(id) {
|
||||
XPCOMUtils.defineLazyGetter(gSyncAddDevice, id, function() {
|
||||
return document.getElementById(id);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue