From b0181669e3cc3663d2f91a22e52cc35613833bd9 Mon Sep 17 00:00:00 2001 From: Mob Code 100 Date: Tue, 1 Oct 2024 18:10:30 +0800 Subject: [PATCH] Fix ESLint --- example.js | 2 +- src/Client.js | 2 +- src/util/Constants.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example.js b/example.js index 69b4fa74b3..db77c51c33 100644 --- a/example.js +++ b/example.js @@ -20,7 +20,7 @@ client.on('loading_screen', (percent, message) => { }); client.on('code', (code) => { - console.log("Pairing code:",code); + console.log('Pairing code:',code); }); client.on('authenticated', () => { diff --git a/src/Client.js b/src/Client.js index 2019557df6..ae42a9fc3c 100644 --- a/src/Client.js +++ b/src/Client.js @@ -367,7 +367,7 @@ class Client extends EventEmitter { window.AuthStore.PairingCodeLinkUtils.setPairingType('ALT_DEVICE_LINKING'); await window.AuthStore.PairingCodeLinkUtils.initializeAltDeviceLinking(); return window.AuthStore.PairingCodeLinkUtils.startAltLinkingFlow(phoneNumber, showNotification); - } + }; if (window.codeInterval) { clearInterval(window.codeInterval); // remove existing interval } diff --git a/src/util/Constants.js b/src/util/Constants.js index 3104e8779f..9091651155 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -20,7 +20,7 @@ exports.DefaultOptions = { bypassCSP: false, proxyAuthentication: undefined, pairWithPhoneNumber: { - phoneNumber: "", + phoneNumber: '', showNotification: true, intervalMs: 180000, },