mirror of
https://github.com/bitwarden/server
synced 2025-12-20 18:23:44 +00:00
take fixes
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Bit.Icons.Services
|
|||||||
var links = document.QuerySelectorAll("head link[href]");
|
var links = document.QuerySelectorAll("head link[href]");
|
||||||
if(links != null)
|
if(links != null)
|
||||||
{
|
{
|
||||||
foreach(var link in links.Take(40))
|
foreach(var link in links.Take(200))
|
||||||
{
|
{
|
||||||
var hrefAttr = link.Attributes["href"];
|
var hrefAttr = link.Attributes["href"];
|
||||||
if(string.IsNullOrWhiteSpace(hrefAttr?.Value))
|
if(string.IsNullOrWhiteSpace(hrefAttr?.Value))
|
||||||
@@ -136,7 +136,7 @@ namespace Bit.Icons.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
var iconResultTasks = new List<Task>();
|
var iconResultTasks = new List<Task>();
|
||||||
foreach(var icon in icons)
|
foreach(var icon in icons.OrderBy(i => i.Priority).Take(10))
|
||||||
{
|
{
|
||||||
Uri iconUri = null;
|
Uri iconUri = null;
|
||||||
if(icon.Path.StartsWith("//") && Uri.TryCreate($"{GetScheme(uri)}://{icon.Path.Substring(2)}",
|
if(icon.Path.StartsWith("//") && Uri.TryCreate($"{GetScheme(uri)}://{icon.Path.Substring(2)}",
|
||||||
|
|||||||
Reference in New Issue
Block a user