fixed locale issue
This commit is contained in:
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user