From 24b50419cf2a308cc7b3eac97c77336636368ca7 Mon Sep 17 00:00:00 2001 From: Martin Rubli Date: Sat, 15 Apr 2023 22:08:10 +0200 Subject: [PATCH] ConfigService: Fix missing default case for [urls] section --- App/ConfigService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/ConfigService.cs b/App/ConfigService.cs index 3ac1ac1..f6c6080 100644 --- a/App/ConfigService.cs +++ b/App/ConfigService.cs @@ -47,7 +47,7 @@ public IEnumerable GetUrlPreferences(string configType) .Select(kvp => new UrlPreference { UrlPattern = kvp.Key, Browser = browsers[kvp.Value] }) .Where(up => up.Browser != null); - if (configType == "browsers") + if (configType == "urls") urls = urls.Union(new[] { new UrlPreference { UrlPattern = "*", Browser = browsers.FirstOrDefault().Value } }); // Add a catch-all that uses the first browser return urls;