Release v1.0.4 - Add logging system, lock button, and emoji navigation
- Comprehensive logging system with chrome.storage.session persistence - NIP-07 action logging in background scripts with standalone functions - Vault operation logging (unlock, lock, create, reset, import, export) - Profile and bookmark operation logging - Logs page with refresh functionality and category icons - Lock button (🔒) in navigation bar to quickly lock vault - Reduced nav bar size (40px height, 16px font) with emoji icons - Reordered navigation: You, Permissions, Bookmarks, Logs, About, Lock - Bookmarks functionality for saving frequently used Nostr apps - Fixed lock/unlock flow by properly clearing in-memory session data 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,14 @@ export class StorageService {
|
||||
this.isInitialized = false;
|
||||
}
|
||||
|
||||
async lockVault(): Promise<void> {
|
||||
this.assureIsInitialized();
|
||||
await this.getBrowserSessionHandler().clearData();
|
||||
this.getBrowserSessionHandler().clearInMemoryData();
|
||||
// Note: We don't set isInitialized = false here because the sync data
|
||||
// (encrypted vault) is still loaded and we need it to unlock again
|
||||
}
|
||||
|
||||
async unlockVault(password: string): Promise<void> {
|
||||
await unlockVault.call(this, password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user