Skip to content

Commit

Permalink
Merge pull request #1 from jchavannes/master
Browse files Browse the repository at this point in the history
Fix memo username
  • Loading branch information
blockparty-sh authored Oct 25, 2018
2 parents 3baec97 + 55a1eef commit 17641f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/memo.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,17 @@
}, (data) => {
console.log(data);
let username = '';
let outs = [];
if (data.c.length > 0) {
username = data.c[0].out[0].s2;
outs = data.c[0].out;
}
if (data.u.length > 0) {
username = data.u[0].out[0].s2;
outs = data.u[0].out;
}
for (const o of outs) {
if (o.h1 === "6d01" && o.s2) {
username = o.s2;
}
}
document.getElementById('current-name').innerText = username;
});
Expand Down

0 comments on commit 17641f7

Please sign in to comment.