Use CDN for PluginManifest

This commit is contained in:
Kevin Zhang 2021-09-23 12:16:48 -05:00
parent 1cf2f1b06d
commit f64821eb1f

View file

@ -15,7 +15,7 @@ namespace Flow.Launcher.Plugin.PluginsManager.Models
{
try
{
await using var jsonStream = await Http.GetStreamAsync("https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json")
await using var jsonStream = await Http.GetStreamAsync("https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest/plugins.json")
.ConfigureAwait(false);
UserPlugins = await JsonSerializer.DeserializeAsync<List<UserPlugin>>(jsonStream).ConfigureAwait(false);