Update clipboard checks
annybs opened this issue · comments
As highlighted by @feroviktor:
wallet/src/components/index/CreateModal.vue
Lines 178 to 181 in 37fdbfa
The canCopy
component data isn't necessary here as navigator.clipboard
is globally accessible. This should be updated in all instances similarly to edge/explorer#139:
- Remove
canCopy
data from component - Substitute
!!navigator.clipboard
as conditional - Ensure
navigator.clipboard
is only accessed when available
@feroviktor Please take note of my latest feedback on the use of navigator.clipboard
- specifically, write it this way:
if (!!navigator.clipboard) {
return navigator.clipboard.writeText(input)
}
window.alert('Clipboard unavailable. Please copy-paste manually.')
Closed prematurely - I need to review the PR first!
Merged to develop.