Allow Preview

This commit is contained in:
墨渊
2025-10-21 16:15:16 +08:00
committed by GitHub
parent 76f4e761b1
commit 8ba86ffed8
@@ -2539,7 +2539,7 @@ NextElement:
''' </summary> ''' </summary>
Public Sub OpenWebsite(Url As String) Public Sub OpenWebsite(Url As String)
Try Try
If Not Url.StartsWithF("http", True) AndAlso Not Url.StartsWithF("minecraft://", True) Then If Not Url.StartsWithF("http", True) AndAlso Not Url.StartsWithF("minecraft://", True) AndAlso Not Url.StartsWithF("minecraft-preview://", True) Then
Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!") Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")
End If End If
Log("[System] 正在打开网页:" & Url) Log("[System] 正在打开网页:" & Url)