From 3a08f690a8bb1f585e61856dfb3b74802d578cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Sat, 29 Jun 2024 14:22:37 +0200 Subject: [PATCH] bug: cannot customize without hitting generate --- src/App.tsx | 3 +-- src/Context.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 796f47f..1772ad9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,7 +36,7 @@ const tabs = [ } ] -const defaultData = 'https://lesailesdumontblanc.com' +//const defaultData = 'https://lesailesdumontblanc.com' const embeddedLogos = [ { path: '/admb.svg', label: 'Mini Admb light blue' }, { path: '/admb-navy.svg', label: 'Mini Admb navy blue' }, @@ -201,7 +201,6 @@ function App() { useEffect(() => { const image = options.removeBrand ? '' : options.image qrCode.update({ - data: defaultData, qrOptions: { errorCorrectionLevel: options.errorCorrectionLevel, }, diff --git a/src/Context.tsx b/src/Context.tsx index 4880e95..299fe60 100644 --- a/src/Context.tsx +++ b/src/Context.tsx @@ -13,7 +13,7 @@ interface ProviderProps { } const qrCode = new QRCodeStyling({ - data: window.location.origin, + data: 'https://lesailesdumontblanc.com', shape: 'square', image: `${window.location.origin}/scanme.svg`,