made API endpoints copyable

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-03-10 08:56:41 -06:00
parent 00b3145e79
commit 7c1e6bd45c
4 changed files with 32 additions and 24 deletions

View File

@@ -959,4 +959,9 @@ function saveUserColumnPreferences(importMode) {
errorToast(genericErrorMessage());
}
});
}
function copyToClipboard(e) {
var textToCopy = e.textContent;
navigator.clipboard.writeText(textToCopy);
successToast("Copied to Clipboard");
}