Skip to content

Commit c731a9e

Browse files
committed
#7496 Don't replace the value of the type attribute in NopScriptTagHelper
1 parent 184f39f commit c731a9e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Presentation/Nop.Web.Framework/TagHelpers/Shared/NopScriptTagHelper.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Text.Encodings.Web;
22
using Microsoft.AspNetCore.Hosting;
33
using Microsoft.AspNetCore.Html;
4-
using Microsoft.AspNetCore.Http;
54
using Microsoft.AspNetCore.Mvc.Razor.TagHelpers;
65
using Microsoft.AspNetCore.Mvc.Rendering;
76
using Microsoft.AspNetCore.Mvc.Routing;
@@ -129,9 +128,6 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu
129128

130129
output.TagMode = TagMode.StartTagAndEndTag;
131130

132-
if (!output.Attributes.ContainsName("type")) // we don't touch other types e.g. text/template
133-
output.Attributes.SetAttribute("type", MimeTypes.TextJavascript);
134-
135131
var woConfig = _appSettings.Get<WebOptimizerConfig>();
136132

137133
if (Location == ResourceLocation.Auto)

0 commit comments

Comments
 (0)