fix JavaScript injection issue on first render for Resources defined in IModule and ITheme

This commit is contained in:
sbwalker
2023-06-05 22:00:02 -04:00
parent 3692ec49c1
commit 818fd2fb43

View File

@ -96,6 +96,7 @@
{
await InjectScripts(PageState.Page.BodyContent, ResourceLocation.Body);
}
}
if (PageState.Page.Resources != null && PageState.Page.Resources.Exists(item => item.ResourceType == ResourceType.Script))
{
@ -121,7 +122,6 @@
}
}
}
}
private async Task InjectScripts(string content, ResourceLocation location)
{