diff options
| author | XhmikosR <[email protected]> | 2019-07-23 17:47:33 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-23 17:47:33 +0300 |
| commit | d7a62b505c495995b1a6eda9f3215ee01d0e97c1 (patch) | |
| tree | e5477c192bc4f77592389cf812f7fc2596205a44 | |
| parent | ebb1eea52082d0909bf9013608a65028b6afca20 (diff) | |
| download | bootstrap-d7a62b505c495995b1a6eda9f3215ee01d0e97c1.tar.xz bootstrap-d7a62b505c495995b1a6eda9f3215ee01d0e97c1.zip | |
Don't add the crossorigin attribute unless we pass integrity. (#29112)
| -rw-r--r-- | site/layouts/_default/examples.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index ee3a5d42e..5e2e58ea8 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -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> |
