Skip to content

Commit ccd1309

Browse files
committed
Disable analytics on non-mobile platforms
1 parent 2f48326 commit ccd1309

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Packages/com.walletconnect.web3modal/Runtime/Controllers/EventsController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Newtonsoft.Json;
55
using UnityEngine;
66
using WalletConnect.Web3Modal.Http;
7-
using WalletConnectUnity.Core;
87

98
namespace WalletConnect.Web3Modal
109
{
@@ -54,6 +53,10 @@ private async Task LoadRemoteAnalyticsConfig(ApiController apiController)
5453

5554
public async void SendEvent(Event @event)
5655
{
56+
#if !UNITY_IOS && !UNITY_ANDROID
57+
// Temporary disable analytics for non-mobile platforms
58+
return;
59+
#endif
5760
try
5861
{
5962
if (_state == AnalyticsState.Disabled)

0 commit comments

Comments
 (0)