mirror of
https://github.com/aljazceru/nostr-watch.git
synced 2025-12-17 05:24:19 +01:00
fix copy
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</td>
|
||||
|
||||
<td class="relay left-align relay-url">
|
||||
<span @click="copy">{{ relay }}</span>
|
||||
<span @click="copy(relay)">{{ relay }}</span>
|
||||
</td>
|
||||
|
||||
<td class="verified">
|
||||
@@ -182,6 +182,7 @@ export default defineComponent({
|
||||
return `https://github.com/nostr-protocol/nips/blob/master/${this.nipSignature(key)}.md`
|
||||
},
|
||||
async copy(text) {
|
||||
console.log('copy', text)
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
} catch($e) {
|
||||
|
||||
@@ -170,13 +170,6 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
|
||||
async copy(text) {
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
} catch($e) {
|
||||
//console.log('Cannot copy');
|
||||
}
|
||||
},
|
||||
|
||||
relaysTotal () {
|
||||
return this.relays.length
|
||||
|
||||
Reference in New Issue
Block a user