Fix clipboard copy
This commit is contained in:
parent
24f918d76a
commit
6a62b79a12
3 changed files with 4 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,5 @@
|
|||
*.xpi
|
||||
*.zip
|
||||
*.png
|
||||
|
||||
.web-extension-id
|
||||
|
|
@ -20,5 +20,5 @@
|
|||
"storage",
|
||||
"clipboardWrite"
|
||||
],
|
||||
"version": "1.0"
|
||||
"version": "1.1"
|
||||
}
|
||||
2
popup.js
2
popup.js
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue