diff --git a/src/utils/sp-address.utils.ts b/src/utils/sp-address.utils.ts index b0555fd..f6f24da 100755 --- a/src/utils/sp-address.utils.ts +++ b/src/utils/sp-address.utils.ts @@ -100,7 +100,7 @@ export async function displayEmojis(text: string) { // Verify Other address export function initAddressInput() { - const container = getCorrectDOM('login-4nk-component') as HTMLElement; + const container = getCorrectDOM('login-4nk-component') as HTMLElement const addressInput = container.querySelector('#addressInput') as HTMLInputElement; const emojiDisplay = container.querySelector('#emoji-display-2'); const okButton = container.querySelector('#okButton') as HTMLButtonElement; @@ -148,13 +148,13 @@ export function initAddressInput() { } async function onOkButtonClick() { - const container = getCorrectDOM('login-4nk-component') as HTMLElement; + const container = getCorrectDOM('login-4nk-component') as HTMLElement const secondDeviceAddress = (container.querySelector('#addressInput') as HTMLInputElement).value; try { // Connect to target, if necessary await prepareAndSendPairingTx(secondDeviceAddress); } catch (e) { - console.error(`onOkButtonClick error: ${e}`); + console.error(`onOkButtonClick error: ${e}`); } } @@ -184,7 +184,7 @@ export async function prepareAndSendPairingTx(secondDeviceAddress: string) { export async function generateQRCode(spAddress: string) { try { - const container = getCorrectDOM('login-4nk-component') as HTMLElement; + const container = getCorrectDOM('login-4nk-component') as HTMLElement const currentUrl = 'https://' + window.location.host; const url = await QRCode.toDataURL(currentUrl + '?sp_address=' + spAddress); const qrCode = container?.querySelector('.qr-code img');