写死了单独逻辑

避免有人传了点别的东西进去,现在只有 `minecraft://` 会单独处理
This commit is contained in:
JingHai-Lingyun
2024-06-10 12:14:35 +08:00
parent aa5ff163e6
commit 657b5efc2e
@@ -2186,9 +2186,9 @@ NextElement:
''' </summary>
Public Sub OpenWebsite(Url As String)
' 允许 Minecraft 基岩版的 URLScheme (#3985)
If Url.StartsWithF("minecraft", True) Then
If Url = "minecraft://" Then
' 一定会被捕捉到错误,单独拎出来
Process.Start("minecraft://")
Process.Start(Url)
Else
Try
If Not Url.StartsWithF("http", True) Then Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")