Do not show button if clipboard not available

This commit is contained in:
Daan Sprenkels
2020-04-05 18:46:40 +02:00
parent 1dd0d17ba5
commit 09481f47e6
3 changed files with 24 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
{{end}}
{{define "body"}}
<pre>
<pre id="copyToClipboardContainer" class="hidden">
<button onclick="copyToClipboard('{{.RootURL}}/{{.Paste.Key}}{{.FileExt}}')">Copy URL to clipboard</button> <span id="copyToClipboardStatus"></span>
</pre>
<pre>