Use Application.OpenURL instead of System.Diagnostics.Process.Start

This commit is contained in:
RedBigz 2024-06-09 18:56:44 +10:00
parent 0a9ee3c278
commit 89f4a7debe

View File

@ -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();
}