2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

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
+1 -1
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>