]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Don't add the crossorigin attribute unless we pass integrity. (#29112)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 23 Jul 2019 14:47:33 +0000 (17:47 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2019 14:47:33 +0000 (17:47 +0300)
site/layouts/_default/examples.html

index ee3a5d42e816d563d57b3d6424adb11b756612d1..5e2e58ea8e6f5f334df1e99f187521451a4a9539 100644 (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>