Ensure nostr-tools fallback loads nip helpers

This commit is contained in:
thePR0M3TH3AN committed 2025-10-26 21:16:15 -04:00
1 parent 7cf773a9b6
commit 184e40bcc2
1 file changed
+4 -1
+4 -1
View File
@@ -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 = [