fix double websocket and wait for websocket to open to send paring tx
This commit is contained in:
parent
cfed50a226
commit
3573b0d415
@ -36,8 +36,8 @@ document.querySelectorAll('.tab').forEach(tab => {
|
||||
notifications.style.display = notifications?.style.display === 'none' ? 'block' : 'none'
|
||||
}
|
||||
|
||||
const service = await Services.getInstance()
|
||||
service.setNotification()
|
||||
// const service = await Services.getInstance()
|
||||
// service.setNotification()
|
||||
|
||||
window.toggleMenu = toggleMenu;
|
||||
window.openModal = openModal;
|
||||
@ -73,6 +73,7 @@ docReady(function () {
|
||||
|
||||
if (spAddress) {
|
||||
html5QrcodeScanner.clear();
|
||||
const service = await Services.getInstance()
|
||||
// Call the sendPairingTx function with the extracted sp_address
|
||||
await service.sendPairingTx(spAddress);
|
||||
} else {
|
||||
|
@ -22,7 +22,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
const pairingAddress = urlParams.get('sp_address')
|
||||
|
||||
if(pairingAddress) {
|
||||
await services.sendPairingTx(pairingAddress)
|
||||
setTimeout(async () => await services.sendPairingTx(pairingAddress), 1000)
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user