Add qr codes
This commit is contained in:
parent
f05d693994
commit
790407d42e
4 changed files with 34 additions and 3 deletions
|
@ -17,7 +17,13 @@
|
|||
this.loadTheirKey(),
|
||||
this.loadOurKey(),
|
||||
]).then(this.generateSecurityNumber.bind(this))
|
||||
.then(this.render.bind(this));
|
||||
.then(this.render.bind(this))
|
||||
.then(this.makeQRCode.bind(this));
|
||||
},
|
||||
makeQRCode: function() {
|
||||
new QRCode(this.$('.qr')[0]).makeCode(
|
||||
dcodeIO.ByteBuffer.wrap(this.our_key).toString('base64')
|
||||
);
|
||||
},
|
||||
loadTheirKey: function() {
|
||||
if (this.their_key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue