1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-17 02:01:53 +01:00

take fixes

This commit is contained in:
Kyle Spearrin 2018-06-25 09:59:32 -04:00
parent 9561b167f7
commit 3bf468c545

View File

@ -100,7 +100,7 @@ namespace Bit.Icons.Services
var links = document.QuerySelectorAll("head link[href]");
if(links != null)
{
foreach(var link in links.Take(40))
foreach(var link in links.Take(200))
{
var hrefAttr = link.Attributes["href"];
if(string.IsNullOrWhiteSpace(hrefAttr?.Value))
@ -136,7 +136,7 @@ namespace Bit.Icons.Services
}
var iconResultTasks = new List<Task>();
foreach(var icon in icons)
foreach(var icon in icons.OrderBy(i => i.Priority).Take(10))
{
Uri iconUri = null;
if(icon.Path.StartsWith("//") && Uri.TryCreate($"{GetScheme(uri)}://{icon.Path.Substring(2)}",