Don't add the crossorigin attribute unless we pass integrity. (#29112)

This commit is contained in:
XhmikosR 2019-07-23 17:47:33 +03:00 committed by GitHub
parent ebb1eea520
commit d7a62b505c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
{{- end }}
{{ range .Page.Params.extra_js -}}
<script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} integrity="{{ . }}"{{ end }} crossorigin="anonymous"></script>
<script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end }}></script>
{{- end -}}
{{- end }}
</body>