Skip to content

Commit d8a8c59

Browse files
authored
Fix old download buttons (#1109)
1 parent 57cc924 commit d8a8c59

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

_includes/install/_old-release.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@
5050
{% assign static_sdk = release_info.platforms | where: 'name', 'Static SDK'| first %}
5151
{% if static_sdk %}
5252
{% assign tag_downcase = include.release.tag | downcase %}
53-
<button onclick="copyToClipboard('swift sdk install https://download.swift.org/{{ tag_downcase }}/static-sdk/{{ include.release.tag }}/{{ include.release.tag }}_static-linux-0.0.1.artifactbundle.tar.gz --checksum {{ static_sdk.checksum }}')">Copy install command</button>
54-
<script>
55-
function copyToClipboard(text) {
56-
navigator.clipboard.writeText(text)
57-
}
58-
</script>
53+
<button onclick="copyToClipboard(this, 'swift sdk install https://download.swift.org/{{ tag_downcase }}/static-sdk/{{ include.release.tag }}/{{ include.release.tag }}_static-linux-0.0.1.artifactbundle.tar.gz --checksum {{ static_sdk.checksum }}')">Copy install command</button>
5954
{% else %}
6055
Unavailable
6156
{% endif %}

0 commit comments

Comments
 (0)