We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f7aaa commit f31116eCopy full SHA for f31116e
.changeset/shy-pigs-drive.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+fix avatar image detection on Node
packages/thirdweb/src/utils/ens/avatar.ts
@@ -74,7 +74,7 @@ async function isImageUri(options: ParseAvatarOptions): Promise<boolean> {
74
return false;
75
}
76
// fail in NodeJS, since the error is not cors but any other network issue
77
- if (Object.hasOwn(globalThis, "Image")) {
+ if (!Object.hasOwn(globalThis, "Image")) {
78
79
80
// in case of cors, use image api to validate if given url is an actual image
0 commit comments