From f5f0f3b417f674979c00abc07022cb95b864e0ad Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 7 Nov 2022 13:27:15 -0700 Subject: [PATCH] Added width to QR code --- front/dashboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, + }) } } }