Commit fcfaee2b authored by Philip Elson's avatar Philip Elson 🐍
Browse files

Handle the case where the URL being encoded by qrcodejs is causing an error...

Handle the case where the URL being encoded by qrcodejs is causing an error with the library (e.g. https://github.com/davidshimjs/qrcodejs/issues/78).
parent ea3f4abe
Pipeline #3095054 passed with stage
in 2 minutes and 11 seconds
......@@ -442,13 +442,15 @@
new QRCode(document.getElementById("qrcode"), {
text: "{{ permalink.shortened }}",
width: 330,
height: 330}
);
new QRCode(document.getElementById("pdf_qrcode"), {
height: 330,
correctLevel : QRCode.CorrectLevel.L
});
new QRCode(document.getElementById("pdf_qrcode"), {
text: "{{ permalink.shortened }}",
width: 133,
height: 133}
);
height: 133,
correctLevel : QRCode.CorrectLevel.L
});
</script>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment