Skip to content

Commit

Permalink
Content - GCWeb Jekyll - Add support for integrity hash in custom scr…
Browse files Browse the repository at this point in the history
…ipt (#2435)
  • Loading branch information
duboisp authored Oct 22, 2024
1 parent c52bfd1 commit 57843fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sites/resources-inc/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
<script src="{{ setting-resourcesBasePathTheme }}/js/theme{{ setting-minifiedSuffix }}.js"></script>
{%- if page.script.first -%}
{%- for js in page.script -%}
<script src="{{ js }}"></script>
{%- if js.first -%}
<script src="{{ js.src }}" integrity="{{ js.integrity }}" crossorigin="anonymous"></script>
{%- elsif js -%}
<script src="{{ js }}"></script>
{%- endif -%}
{%- endfor -%}
{%- elsif page.script -%}
<script src="{{ page.script }}"></script>
Expand Down

0 comments on commit 57843fb

Please sign in to comment.