mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 18:32:27 +00:00
Ensure nostr-tools fallback loads nip helpers
This commit is contained in:
1 parent
7cf773a9b6
commit
184e40bcc2
1 file changed
+4
-1
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user