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