mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge branch 'unstable' into codex/fix-loading-errors-on-the-site-37t00u
This commit is contained in:
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user