Skip to content

Commit

Permalink
Update AssetsTagLib
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed May 11, 2024
1 parent 7b7ea72 commit fc0eb47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AssetsTagLib {
def javascript = {final attrs ->
final GrailsPrintWriter outPw = out
attrs.remove('href')
String type = attrs.type ?: 'text/javascript'
String type = attrs.remove('type') ?: 'text/javascript'
element(attrs, 'js', 'application/javascript', null) {final String src, final String queryString, final outputAttrs, final String endOfLine, final boolean useManifest ->
if(attrs.containsKey('asset-defer')) {
script(outputAttrs + [type: type, src: assetPath(src: src, useManifest: useManifest) + queryString],'')
Expand Down

0 comments on commit fc0eb47

Please sign in to comment.