fixed locale issue

This commit is contained in:
Gitea
2025-04-27 17:04:05 +05:30
parent 94eb01b1ab
commit 66cf32a7bb
19 changed files with 88 additions and 44 deletions

View File

@@ -57,10 +57,11 @@ window.addEventListener("showAlert", (event) => {
window.addEventListener("copyEmail", (event) => {
const element = document.getElementById("copyEmail");
const copyText = document.getElementById('copyEmailText').innerText
if (element) {
const textToCopy = element.innerHTML;
navigator.clipboard.writeText(textToCopy).then(() => {
const detail = { type: 'success', message: 'Email copied to clipboard' };
const detail = { type: 'success', message: copyText};
showToast(detail);
}).catch(err => {
const detail = { type: 'error', message: 'Failed to copy email' };