Fixed issue not recognizing browser extension

This commit is contained in:
Your Name
2025-09-22 15:37:53 -04:00
parent 4505167246
commit 3109a93163
5 changed files with 779 additions and 1012 deletions

View File

@@ -104,6 +104,18 @@
}});
// Check for existing authentication state on page load
const authState = getAuthState();
if (authState && authState.method) {
console.log('Found existing authentication:', authState.method);
document.getElementById('status').textContent = `Authenticated with: ${authState.method}`;
document.getElementById('test-section').style.display = 'block';
// Store some test data for encryption/decryption
window.testCiphertext = null;
window.testCiphertext44 = null;
}
// Listen for authentication events
window.addEventListener('nlMethodSelected', (event) => {
console.log('User authenticated:', event.detail);