Работа над проектом

This commit is contained in:
Book Pauk
2022-09-25 17:53:44 +07:00
parent e6d0c6e519
commit 66e5985335
3 changed files with 38 additions and 5 deletions

View File

@@ -42,3 +42,15 @@ export function wordEnding(num, type = 0) {
return endings[type][num % 10];
}
}
export async function copyTextToClipboard(text) {
let result = false;
try {
await navigator.clipboard.writeText(text);
result = true;
} catch (e) {
//
}
return result;
}