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 2306353 commit 96bbd20Copy full SHA for 96bbd20
Assets/Thirdweb/Core/Scripts/Utils.cs
@@ -110,7 +110,7 @@ public static bool IsWebGLBuild()
110
111
public static string ReplaceIPFS(this string uri, string gateway = "https://gateway.ipfscdn.io/ipfs/")
112
{
113
- if (uri.StartsWith("ipfs://"))
+ if (!string.IsNullOrEmpty(uri) && uri.StartsWith("ipfs://"))
114
return uri.Replace("ipfs://", gateway);
115
else
116
return uri;
0 commit comments