Skip to content

Commit

Permalink
Merge pull request DanTup#4 from mrubli/bugfix/default-rule
Browse files Browse the repository at this point in the history
ConfigService: Fix missing default case for [urls] section
  • Loading branch information
slater1 authored Apr 17, 2023
2 parents 3d97883 + 24b5041 commit d3402f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/ConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public IEnumerable<UrlPreference> 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;
Expand Down

0 comments on commit d3402f4

Please sign in to comment.