Skip to content

Commit

Permalink
fix: properly decodeURI to show own certificate correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
zelfroster committed Sep 15, 2023
1 parent 542a8c0 commit f08eb9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webui-src/app/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ const retroshareId = () => {
{
id: 'retroId',
rows: 1,
cols: v.attrs.ownCert.substring(31).length + 2,
cols: v.attrs.ownCert.length + 2,
placeholder: 'certificate',
onclick: () => {
document.getElementById('retroId').select();
},
},
v.attrs.ownCert.substring(31)
v.attrs.ownCert
),
m('i.fas.fa-copy', {
onclick: () => {
Expand Down Expand Up @@ -264,7 +264,7 @@ const Certificate = () => {
rs.rsJsonApiRequest(
'/rsPeers/GetShortInvite',
{ formatRadix: true },
(data) => (ownCert = data.invite)
(data) => (ownCert = decodeURIComponent(data.invite).substring(34))
);
}

Expand Down

0 comments on commit f08eb9c

Please sign in to comment.