[constants] refactor 5000 to SHORT_TIMEOUT_MS

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-16 07:07:16 +00:00
1 parent 3716ef4a4a
commit 8762220cac
8 files changed
+78 -3

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Context: Constants Refactoring
**Date**: 2026-02-16
**Agent**: const-refactor-agent (via daily scheduler)
**Goal**: Identify and canonicalize duplicated numeric literals.
## Scope
- Focus on the literal `5000` which appears to be a common timeout value.
- Refactor usages to `SHORT_TIMEOUT_MS` (5000ms) where semantically appropriate.
## Changes
- `js/ui/videoModalController.js`: `autoHideMs` for status message.
- `js/nostr/nip46Client.js`: `NIP46_PING_TIMEOUT_MS`.
- `js/nostr/nip07Permissions.js`: `NIP07_EXTENSION_WAIT_TIMEOUT_MS`.