From 2a300385a68a9fb692f310ac981eacf9e8c994c0 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Mon, 14 Oct 2024 16:16:14 +0200 Subject: [PATCH] Reverse comment out of url scanning for sp_address --- src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index e44778d..c5a6018 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,13 +15,13 @@ document.addEventListener('DOMContentLoaded', async () => { await services.restoreProcesses(); await services.restoreMessages(); - // const queryString = window.location.search; - // const urlParams = new URLSearchParams(queryString) - // const pairingAddress = urlParams.get('sp_address') + const queryString = window.location.search; + const urlParams = new URLSearchParams(queryString) + const pairingAddress = urlParams.get('sp_address') - // if(pairingAddress) { - // await services.sendPairingTx(pairingAddress) - // } + if(pairingAddress) { + await services.sendPairingTx(pairingAddress) + } }, 500); } catch (error) {