add fallback for copying to clipboard

This commit is contained in:
2022-11-23 02:11:59 +02:00
parent 336784519b
commit 89944eb2b6
3 changed files with 17 additions and 2 deletions

View File

@ -25,7 +25,7 @@
async function copyLogs() {
const logs = packageInfoLogs.text();
await navigator.clipboard.writeText(logs);
await copyToClipboard(logs);
packageInfoLogsCopyButton.html("<i class=\"bi bi-clipboard-check\"></i> copied");
setTimeout(()=> {