diff --git a/src/pages/home/home.ts b/src/pages/home/home.ts index 567184e..151e500 100755 --- a/src/pages/home/home.ts +++ b/src/pages/home/home.ts @@ -548,20 +548,45 @@ async function handleMainPairing(): Promise { try { // Show authentication button that requires user interaction + console.log('🔍 DEBUG: mainStatus element:', mainStatus); if (mainStatus) { + console.log('🔍 DEBUG: Setting up authentication button...'); mainStatus.innerHTML = ` -
-

🔐 Secure authentication required

- -

Click the button above to authenticate with your browser

+
+

🔐 Secure authentication required

+ +

Click the button above to authenticate with your browser

`; + console.log('🔍 DEBUG: Authentication button HTML set'); + } else { + console.error('❌ mainStatus element not found!'); + throw new Error('Main status element not found'); } // Wait for user to click the authentication button await new Promise((resolve, reject) => { + console.log('🔍 DEBUG: Looking for authButton...'); const authButton = document.getElementById('authButton') as HTMLButtonElement; + console.log('🔍 DEBUG: authButton found:', authButton); if (!authButton) { + console.error('❌ Authentication button not found in DOM'); reject(new Error('Authentication button not found')); return; }