diff --git a/front/dashboard.js b/front/dashboard.js index 57af99e..617ca37 100644 --- a/front/dashboard.js +++ b/front/dashboard.js @@ -86,7 +86,10 @@ function PeerList() { cantDelete: true, })) self.newConfigText(parsedRes) - new QRCode(document.getElementById('qrcode'),parsedRes) + new QRCode(document.getElementById('qrcode'),{ + text: parsedRes, + width: document.documentElement.clientWidth, + }) } } }