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

@ -101,7 +101,7 @@ SigLevel = Database{% if has_repo_signed %}Required{% else %}Never{% endif %} Pa
async function copyPacmanConf() {
const conf = pacmanConf.text();
await navigator.clipboard.writeText(conf);
await copyToClipboard(conf);
pacmanConfCopyButton.html("<i class=\"bi bi-clipboard-check\"></i> copied");
setTimeout(() => {