Merge pull request #2869 from sbwalker/dev

fix JavaScript injection issue on first render for Resources defined in IModule and ITheme
This commit is contained in:
Shaun Walker 2023-06-05 22:00:27 -04:00 committed by GitHub
commit 602fd7d658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{