diff --git a/src/pages/pairing/pairing.ts b/src/pages/pairing/pairing.ts index ab0e8c5..4985d71 100644 --- a/src/pages/pairing/pairing.ts +++ b/src/pages/pairing/pairing.ts @@ -7,7 +7,6 @@ import { getCorrectDOM } from '../../utils/html.utils'; import { IframePairingComponent } from '../../components/iframe-pairing/iframe-pairing'; import { checkPBKDF2Key, checkWalletWithRetries } from '../../utils/prerequisites.utils'; import loginHtml from '../home/home.html?raw'; -import loginCss from '../../4nk.css?raw'; // Extend WindowEventMap to include custom events declare global { @@ -93,12 +92,8 @@ document.addEventListener('DOMContentLoaded', async () => { updateStatus('🔄 Initialisation du pairing...', 'loading'); if (pairingContent) { - pairingContent.innerHTML = ` - - ${loginHtml} - `; + // Injecter seulement le HTML, le CSS est déjà chargé via le dans le
+ pairingContent.innerHTML = loginHtml; // Créer un conteneur simulant login-4nk-component pour getCorrectDOM const mockContainer = document.createElement('div'); diff --git a/src/services/service.ts b/src/services/service.ts index 719a0c8..2fea83e 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -2301,6 +2301,7 @@ export default class Services { /** * Ensures a complete initial scan is performed before requesting faucet tokens * This prevents the race condition between scan and faucet transactions + * Only performs scan if wallet is not already synchronized */ public async ensureCompleteInitialScan(): Promise