This commit is contained in:
dskvr
2022-11-27 13:12:40 +01:00
parent 056834a0bb
commit e6963f2771
2 changed files with 2 additions and 8 deletions

View File

@@ -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) {

View File

@@ -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