Skip to content

Commit 58f4c1a

Browse files
committed
fix some bugs
1 parent 9a68aaf commit 58f4c1a

File tree

2 files changed

+3
-67
lines changed

2 files changed

+3
-67
lines changed

Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta

Lines changed: 0 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private GUIStyle TextStyle(int fontSize = 10, TextAnchor alignment = TextAnchor.
6868

6969
private void DrawVersion()
7070
{
71-
GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft));
71+
GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft));
7272
if (string.IsNullOrEmpty(latestVersion))
7373
{
7474
GUI.Label(new Rect(440, 30, 150, 10), "Checking for Updates...", TextStyle(alignment: TextAnchor.MiddleLeft));
@@ -79,7 +79,7 @@ private void DrawVersion()
7979
}
8080
else
8181
{
82-
GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft));
82+
GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft));
8383
if (Settings.VERSION == latestVersion)
8484
{
8585
if (GUI.Button(new Rect(440, 50, 150, 18), "Check Update"))
@@ -183,7 +183,7 @@ private void VersionCheckUpdate()
183183
if (req.isDone)
184184
{
185185
EditorApplication.update -= VersionCheckUpdate;
186-
latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1);
186+
latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1).TrimStart('v');
187187

188188
if (Settings.VERSION != latestVersion)
189189
{

0 commit comments

Comments
 (0)