From 24632b9342a76f1104a26e9eddf983dc2aed8c54 Mon Sep 17 00:00:00 2001 From: oxmc <67136658+oxmc@users.noreply.github.com> Date: Sat, 31 Dec 2022 02:30:29 -0800 Subject: [PATCH] Update AssetsDownloader.cs --- Assets/Scripts/AssetsDownloader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/AssetsDownloader.cs b/Assets/Scripts/AssetsDownloader.cs index 9aa7d7e..3d1b9e5 100644 --- a/Assets/Scripts/AssetsDownloader.cs +++ b/Assets/Scripts/AssetsDownloader.cs @@ -32,9 +32,6 @@ namespace QuestAppLauncher const string GithubApiUrl = @"http://api.github.com/"; const bool isorg = true; - if (isorg == true) { - GithubApiUrl = GithubApiUrl + "orgs/"; - } // Rate limit in minutes const int RateLimitInMins = 5; @@ -299,6 +296,9 @@ namespace QuestAppLauncher private async Task GetAssetsInfoFromGithubRepoAsync(string repoUri, Dictionary assetsInfo, IDownloadProgress downloadProgress = null) { + if (isorg == true) { + GithubApiUrl = GithubApiUrl + "orgs/"; + } var requestUrl = GithubApiUrl + repoUri; Debug.LogFormat("Reading assets from {0}", requestUrl);