Replace jquery.qrcode with kjua for QR codes

This handles UTF-8 content correctly
This commit is contained in:
Ian Coleman
2017-11-29 09:54:04 +11:00
parent f2de7aa7d8
commit 9225b805d6
5 changed files with 11 additions and 32 deletions

View File

@@ -1240,8 +1240,13 @@
function createQr(e) {
var content = e.target.textContent || e.target.value;
if (content) {
var size = 130;
DOM.qrImage.qrcode({width: size, height: size, text: content});
var qrEl = kjua({
text: content,
render: "canvas",
size: 310,
ecLevel: 'H',
});
DOM.qrImage.append(qrEl);
if (!showQr) {
DOM.qrHider.addClass("hidden");
}