Add qr codes

This commit is contained in:
lilia 2016-09-19 02:52:50 -07:00
parent f05d693994
commit 790407d42e
4 changed files with 34 additions and 3 deletions

View file

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