integrate old logic for managing stylesheets using JS Interop

This commit is contained in:
sbwalker
2023-06-20 08:52:02 -04:00
parent 02e22df4d5
commit c8a679ecce
7 changed files with 141 additions and 19 deletions

View File

@ -522,7 +522,7 @@
}
// ensure resource does not exist already
if (pageresources.Find(item => item.Url == resource.Url) == null)
if (!pageresources.Any(item => item.Url.ToLower() == resource.Url.ToLower()))
{
resource.Level = level;
pageresources.Add(resource);