mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-20 17:32:17 +00:00
Replace jquery.qrcode with kjua for QR codes
This handles UTF-8 content correctly
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user