mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 07:14:50 -05:00
take fixes
This commit is contained in:
parent
9561b167f7
commit
3bf468c545
@ -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)}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user