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

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 () {
return this.relays.length