Skip to content

Commit 31f7183

Browse files
authored
Merge pull request #66 from KoenRijpstra/webgl-environment-error
Fixed WebGL error: Unsupported internal call for IL2CPP:RuntimeInformation::GetRuntimeArchitecture
2 parents deae54c + e1a6e28 commit 31f7183

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Assets/MoralisWeb3ApiSdk/Moralis/Moralis.WebGL/MoralisDotNet/Platform/EnvironmentData.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.InteropServices;
32
using Moralis.WebGL.Platform.Abstractions;
43

54
namespace Moralis.WebGL.Platform
@@ -15,8 +14,8 @@ public class EnvironmentData : IEnvironmentData
1514
public static EnvironmentData Inferred => new EnvironmentData
1615
{
1716
TimeZone = TimeZoneInfo.Local.StandardName,
18-
OSVersion = RuntimeInformation.OSDescription != null ? RuntimeInformation.OSDescription : Environment.OSVersion.ToString(),
19-
Platform = RuntimeInformation.FrameworkDescription != null ? RuntimeInformation.FrameworkDescription : ".NET"
17+
OSVersion = "unknown", // WebGL doesn't know the OS
18+
Platform = ".NET"
2019
};
2120

2221
/// <summary>

0 commit comments

Comments
 (0)