fix: increase NIP-07 extension timeout to 5000ms

Increases the default wait time for NIP-07 extension injection from 1.5s to 5s.
This resolves timeout errors for users on slower connections or devices where
the extension takes longer to inject `window.nostr`.

Verified with a reproduction script that simulates delayed injection.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-25 17:04:28 +00:00
1 parent 31a03e81b3
commit ecef84f2d8
1 file changed
+1 -1
+1 -1
View File
@@ -311,7 +311,7 @@ export const __testExports = {
normalizePermissionMethod,
};
export function waitForNip07Extension(timeoutMs = 1500) {
export function waitForNip07Extension(timeoutMs = 5000) {
return new Promise((resolve, reject) => {
if (typeof window !== "undefined" && window.nostr) {
resolve(window.nostr);