mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 02:12:26 +00:00
Merge pull request #956 from PR0M3TH3AN/codex/add-nip44-dynamic-import-and-diagnostics
Ensure nostr-tools fallback loads nip helpers
This commit is contained in:
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