Skip to content

Commit

Permalink
Don't show SRI for auto-minified files (fixes jsdelivr/jsdelivr#18105)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasDrgon committed Oct 20, 2018
1 parent 3642c35 commit 8693e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/components/copy-dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<ul class="dropdown-menu dropdown-menu-right">
<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{url}}">Copy URL</a></li>
<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{buildIntegrity(hash)}}">Copy SRI</a></li>
{{#if hash}}<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{buildIntegrity(hash)}}">Copy SRI</a></li>{{/if}}
{{#if canBuildHtml(url)}}
<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{buildHtml(url)}}">Copy HTML</a></li>
<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{buildHtml(url, hash)}}">Copy HTML + SRI</a></li>
{{#if hash}}<li><a as-clipboard="undefined, dropup ? 'bottom' : 'top', '.c-copy-dropdown'" data-clipboard-text="{{buildHtml(url, hash)}}">Copy HTML + SRI</a></li>{{/if}}
{{/if}}
</ul>
</div>
Expand Down

0 comments on commit 8693e02

Please sign in to comment.