Skip to content

Commit

Permalink
don't init sentry on non-desktop platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Jul 18, 2024
1 parent 98c89da commit e23c2ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluXis.Game/Utils/Sentry/SentryClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using fluXis.Game.Configuration;
using fluXis.Game.Online.API;
using fluXis.Shared.Components.Users;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
Expand All @@ -24,7 +25,7 @@ public SentryClient(FluXisGame game)

Logger.Log("Initializing sentry client...");

if (FluXisGameBase.IsDebug)
if (FluXisGameBase.IsDebug || !RuntimeInfo.IsDesktop)
return;

session = SentrySdk.Init(opt =>
Expand Down

0 comments on commit e23c2ad

Please sign in to comment.