From 184e40bcc2ecd42f3cefc1c1d41157589b0745d4 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 26 Oct 2025 21:16:15 -0400 Subject: [PATCH] Ensure nostr-tools fallback loads nip helpers --- js/nostrToolsBootstrap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/nostrToolsBootstrap.js b/js/nostrToolsBootstrap.js index 4155f637..c951585c 100644 --- a/js/nostrToolsBootstrap.js +++ b/js/nostrToolsBootstrap.js @@ -410,6 +410,8 @@ export function bootstrapNostrTools() { } }); + const needsAdditionalCrypto = !resolvedNip04 || !resolvedNip44; + const allDynamicTimedOut = attempts.length > 0 && attempts.every( @@ -422,7 +424,8 @@ export function bootstrapNostrTools() { ); const shouldAttemptScriptFallback = - !!scope.document && (resolvedModules.length === 0 || allDynamicTimedOut); + !!scope.document && + (resolvedModules.length === 0 || allDynamicTimedOut || needsAdditionalCrypto); if (shouldAttemptScriptFallback) { const scriptSources = [