optimize JavaScript handling
This commit is contained in:
@ -55,7 +55,6 @@
|
||||
@Html.Raw(Model.PWAScript)
|
||||
}
|
||||
@Html.Raw(Model.BodyResources)
|
||||
<component type="typeof(Oqtane.Body)" render-mode="@((RenderMode)Enum.Parse(typeof(RenderMode), Model.RenderMode, true))" />
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -430,8 +430,8 @@ namespace Oqtane.Pages
|
||||
|
||||
private void ProcessHeadContent(string headcontent, string id)
|
||||
{
|
||||
// iterate scripts
|
||||
if (headcontent != null)
|
||||
// add scripts to page
|
||||
if (!string.IsNullOrEmpty(headcontent))
|
||||
{
|
||||
var count = 0;
|
||||
var index = headcontent.IndexOf("<script");
|
||||
|
Reference in New Issue
Block a user