Merge branch 'unstable' into codex/fix-loading-errors-on-the-site-37t00u

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-06 11:40:49 -04:00
commit 26c4420293
1 file changed
+2
+2
View File
@@ -4363,6 +4363,7 @@ class NostrClient {
const tools = await ensureNostrTools();
const SimplePool = resolveSimplePoolConstructor(tools);
if (typeof SimplePool !== "function") {
if (isDevMode) {
if (tools && typeof tools === "object") {
@@ -4386,6 +4387,7 @@ class NostrClient {
const error = new Error(
"NostrTools SimplePool is unavailable. Verify that nostr-tools resources can load on this domain."
);
error.code = "nostr-simplepool-unavailable";
if (nostrToolsBootstrapFailure) {
error.bootstrapFailure = nostrToolsBootstrapFailure;