Skip to content

Commit a156093

Browse files
committed
[SDK] fix avatar image detection on Node
1 parent dcd6b99 commit a156093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/utils/ens/avatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function isImageUri(options: ParseAvatarOptions): Promise<boolean> {
7474
return false;
7575
}
7676
// fail in NodeJS, since the error is not cors but any other network issue
77-
if (Object.hasOwn(globalThis, "Image")) {
77+
if (!Object.hasOwn(globalThis, "Image")) {
7878
return false;
7979
}
8080
// in case of cors, use image api to validate if given url is an actual image

0 commit comments

Comments
 (0)