refactor(qr-code): multiline input

This commit is contained in:
Corentin Thomasset 2023-04-06 00:54:17 +02:00 committed by Corentin THOMASSET
parent f68e859c20
commit f3480fe560
2 changed files with 7 additions and 2 deletions

View file

@ -19,7 +19,7 @@ export function useQRCode({
[text, background, foreground, errorCorrectionLevel].filter(isRef),
async () => {
if (get(text))
qrcode.value = await QRCode.toDataURL(get(text), {
qrcode.value = await QRCode.toDataURL(get(text).trim(), {
color: {
dark: get(foreground),
light: get(background),