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
|
*.xpi
|
||||||
|
*.zip
|
||||||
|
*.png
|
||||||
|
|
||||||
.web-extension-id
|
.web-extension-id
|
||||||
|
|
@ -20,5 +20,5 @@
|
||||||
"storage",
|
"storage",
|
||||||
"clipboardWrite"
|
"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')
|
let otp_elt = document.createElement('div')
|
||||||
otp_elt.className = 'otp'
|
otp_elt.className = 'otp'
|
||||||
otp_elt.addEventListener('click', () => {
|
otp_elt.addEventListener('click', () => {
|
||||||
navigator.clipboard.writeText(this.signature)
|
navigator.clipboard.writeText(otp_elt.textContent)
|
||||||
})
|
})
|
||||||
new_elt.appendChild(otp_elt)
|
new_elt.appendChild(otp_elt)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue