diff --git a/layout/includes/widgets/post/copyright.pug b/layout/includes/widgets/post/copyright.pug index 6ce1a5b8..f1f75f56 100644 --- a/layout/includes/widgets/post/copyright.pug +++ b/layout/includes/widgets/post/copyright.pug @@ -56,9 +56,15 @@ #qrcode .reward-dec=_p('post.share.qrcode') script(pjax). - typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), '!{path}'); + typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), { + text: '!{path}', + correctLevel : QRCode.CorrectLevel.L + }); window.addEventListener('DOMContentLoaded', () => { - new QRCode(document.getElementById("qrcode"), '!{path}'); + new QRCode(document.getElementById("qrcode"), { + text: '!{path}', + correctLevel : QRCode.CorrectLevel.L + }); }); if copyright.enable || page.copyright