mirror of https://github.com/abpframework/abp.git
4 changed files with 20 additions and 15 deletions
@ -1,11 +0,0 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling.Contributors; |
|||
|
|||
public class AbpPreloadStyleLoadScriptContributor : BundleContributor |
|||
{ |
|||
public override void ConfigureBundle(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.AddIfNotContains("/libs/abp/aspnetcore-mvc-ui-theme-shared/csp/preload-style-load.js"); |
|||
} |
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
$(function (){ |
|||
let preLoads = $("link[rel=preload][as=style]"); |
|||
let preLoads = $("link[abp-csp-style]"); |
|||
preLoads.attr("rel", "stylesheet"); |
|||
}) |
|||
Loading…
Reference in new issue