Skip to content

Commit

Permalink
fixed vcf note field
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuraghavb committed Jan 7, 2022
1 parent c57c8d8 commit c9beb53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,10 @@ export default {
return false
})
.filter((e) => e)
let note = this.genInfo.desc
? this.genInfo.desc.replace(/[\r\n]+/gm, '')
: null
let key = this.pubKeyIsValid ? window.btoa(this.genInfo.key) : null
let randomNumber = Math.floor(100000000 + Math.random() * 900000)
return {
Expand All @@ -1273,7 +1277,7 @@ export default {
website,
urls,
key,
note: this.genInfo.desc,
note,
uid: `EnBizCard-${randomNumber}`,
}
},
Expand Down

0 comments on commit c9beb53

Please sign in to comment.