From 89f4a7debed6020821fa0e89e73ccc346c58fef1 Mon Sep 17 00:00:00 2001 From: RedBigz Date: Sun, 9 Jun 2024 18:56:44 +1000 Subject: [PATCH] Use Application.OpenURL instead of System.Diagnostics.Process.Start --- Uploader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Uploader.cs b/Uploader.cs index 3c9f81b..aa586f1 100644 --- a/Uploader.cs +++ b/Uploader.cs @@ -6,6 +6,7 @@ using System.Linq; using HarmonyLib; using Photon.Pun; using Steamworks; +using UnityEngine; using UnityEngine.UIElements; using UnityEngine.UIElements.Collections; using WebSocketSharp; @@ -82,7 +83,8 @@ class SpookedUploader { ws.Close(); // Plugin.ModalProxy("Upload Complete", $"Video uploaded to {viewableUrl}! ({uuid})"); - System.Diagnostics.Process.Start($"{viewableUrl}/#{uuid}"); + // System.Diagnostics.Process.Start($"{viewableUrl}/#{uuid}"); + Application.OpenURL($"{viewableUrl}/#{uuid}"); onUpload(); }