Skip to content

Commit

Permalink
Fix href encodig for QR
Browse files Browse the repository at this point in the history
  • Loading branch information
rsierra committed Jan 27, 2020
1 parent 1c7334f commit b10be48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion statics/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@ $("a.qr-link").click(function (e) {
$("#qr-code").fadeIn();

// set qr-code content
$("#qr-code").empty().qrcode(href);
$("#qr-code").empty().qrcode(
{
text: encodeURI(decodeURI(href)),
correctLevel: 1, // QRErrorCorrectLevel.L,
width: 300,
height: 300
}
);
});

0 comments on commit b10be48

Please sign in to comment.