From 1cccf236bbc9ea01fde5f63108631100374fa60a Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Thu, 23 Oct 2025 13:17:45 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Filtrer=20les=20messages=20d'extensions?= =?UTF-8?q?=20de=20navigateur=20et=20am=C3=A9liorer=20le=20debugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajouter le filtrage des messages Pass:: et PassClientScriptReady - Améliorer les logs de debugging pour l'initialisation de la page d'accueil - Éviter le spam de logs des gestionnaires de mots de passe - Faciliter le diagnostic des problèmes d'initialisation --- src/pages/home/home.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/home/home.ts b/src/pages/home/home.ts index 4c4982d..c71a451 100755 --- a/src/pages/home/home.ts +++ b/src/pages/home/home.ts @@ -132,15 +132,21 @@ export async function initHomePage(): Promise { }); try { + console.log('🔧 Getting services instance...'); const service = await Services.getInstance(); + console.log('🔧 Getting device address...'); const spAddress = await service.getDeviceAddress(); + console.log('🔧 Generating create button...'); generateCreateBtn(); + console.log('🔧 Displaying emojis...'); displayEmojis(spAddress); // Hide loading spinner after initialization + console.log('🔧 Hiding loading spinner...'); hideHomeLoadingSpinner(); + console.log('✅ Home page initialization completed'); } catch (error) { - console.error('Error initializing home page:', error); + console.error('❌ Error initializing home page:', error); hideHomeLoadingSpinner(); throw error; } @@ -358,7 +364,9 @@ export function initIframeCommunication() { if ( event.data.source === 'react-devtools-content-script' || event.data.hello === true || - !event.data.type + !event.data.type || + event.data.type.startsWith('Pass::') || + event.data.type === 'PassClientScriptReady' ) { return; // Ignore browser extension messages }