Skip to content

Commit 396310d

Browse files
committed
Updated & Moved API url to a constant
1 parent 5ce1ec0 commit 396310d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MLAPI-Editor/MLAPIEditor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class AppveyorBuild
4040
[InitializeOnLoad]
4141
public class MLAPIEditor : EditorWindow
4242
{
43+
private const string API_URL = "https://api.github.com/repos/MidLevel/MLAPI/releases";
4344
private GithubRelease[] releases = new GithubRelease[0];
4445
private bool[] foldoutStatus = new bool[0];
4546
private string currentVersion
@@ -221,7 +222,7 @@ private IEnumerator GetReleases()
221222
{
222223
lastUpdated = DateTime.Now.Ticks;
223224

224-
WWW www = new WWW("https://api.github.com/repos/TwoTenPvP/MLAPI/releases");
225+
WWW www = new WWW(API_URL);
225226
isFetching = true;
226227
while (!www.isDone && string.IsNullOrEmpty(www.error))
227228
{

0 commit comments

Comments
 (0)