Skip to content

Commit

Permalink
Merge pull request #42 from yeojz/fix/website-qrcode
Browse files Browse the repository at this point in the history
fix(website): QRCode not generating
  • Loading branch information
yeojz committed Mar 28, 2018
2 parents b385b17 + 18c0eb7 commit a5dbf52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/public/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global qrcodelib otplib*/
/* global QRCode otplib*/
(function() {
var secret = '';
var step = 30;
Expand Down Expand Up @@ -28,7 +28,7 @@

document.querySelector('.otp-secret').innerHTML = secret;

qrcodelib.toDataURL(otpauth, function(err, url) {
QRCode.toDataURL(otpauth, function(err, url) {
var container = document.querySelector('.otp-qrcode .qrcode');
if (err) {
container.innerHTML = 'Error generating QR Code';
Expand Down

0 comments on commit a5dbf52

Please sign in to comment.