mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 16:32:28 +00:00
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:
1 parent
31a03e81b3
commit
ecef84f2d8
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user