Publish generated HTML in the client (dotnet/aspnetcore-tooling#1633)
* Publish generated HTML in the client
* feedback
* fix
\n\nCommit migrated from a666c6f5e3
This commit is contained in:
parent
b84fc9b3b6
commit
d41276b0fa
|
|
@ -126,9 +126,11 @@ namespace Microsoft.AspNetCore.Razor.Language
|
|||
if (razorHtmlObj == null)
|
||||
{
|
||||
var razorHtmlDocument = RazorHtmlWriter.GetHtmlDocument(document);
|
||||
document.Items[typeof(RazorHtmlDocument)] = razorHtmlDocument;
|
||||
|
||||
return razorHtmlDocument;
|
||||
if (razorHtmlDocument != null)
|
||||
{
|
||||
document.Items[typeof(RazorHtmlDocument)] = razorHtmlDocument;
|
||||
return razorHtmlDocument;
|
||||
}
|
||||
}
|
||||
|
||||
return (RazorHtmlDocument)razorHtmlObj;
|
||||
|
|
|
|||
Loading…
Reference in New Issue