Fixed issue not recognizing browser extension
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user