Skip to content

Commit

Permalink
temporarily disable integrity checks on scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Jun 27, 2024
1 parent 37e47f9 commit 0b5856b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@
{{ $main = $main | toCSS $opts | postCSS | fingerprint }}
{{ end }}

<link rel="stylesheet" href="{{ $main.RelPermalink }}" integrity="{{ $main.Data.Integrity }}"
crossorigin="anonymous">
<link rel="stylesheet" href="{{ $main.RelPermalink }}" crossorigin="anonymous">

{{ $opts := dict
"targetPath" "js/main.js"
"enableSourceMap" (not hugo.IsProduction)
}}
{{ with resources.Get "ts/main.ts" | js.Build $opts | minify | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" defer></script>
<script src="{{ .RelPermalink }}" defer></script>
{{ end }}

{{ if .IsHome }}
Expand All @@ -47,7 +46,7 @@
"enableSourceMap" (not hugo.IsProduction)
}}
{{ with resources.Get "ts/formWorker.ts" | js.Build $opts | minify | fingerprint }}
<script id="form-worker" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" defer></script>
<script id="form-worker" src="{{ .RelPermalink }}" defer></script>
{{ end }}
{{ end }}

Expand Down

0 comments on commit 0b5856b

Please sign in to comment.