Fix clipboard copy

This commit is contained in:
Corentin 2022-11-15 17:43:30 +09:00
commit 6a62b79a12
3 changed files with 4 additions and 2 deletions

View file

@ -223,7 +223,7 @@ class Entry
let otp_elt = document.createElement('div')
otp_elt.className = 'otp'
otp_elt.addEventListener('click', () => {
navigator.clipboard.writeText(this.signature)
navigator.clipboard.writeText(otp_elt.textContent)
})
new_elt.appendChild(otp_elt)