From 7a23eb0cc6f93ec21c5ab34e46981ae7a93f42ff Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Mon, 9 Jan 2023 21:27:35 +0100 Subject: [PATCH] fix: :zap: fix inject port args --- packages/portal/portal.http.js | 2 +- packages/portal/src/components/qr/qr.tsx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/portal/portal.http.js b/packages/portal/portal.http.js index 1958daa..26c7b45 100644 --- a/packages/portal/portal.http.js +++ b/packages/portal/portal.http.js @@ -30,7 +30,7 @@ const start = (args) => { polka() .use(serve) - .get(qrFile, (_, res) => { + .get('qr.png', (_, res) => { const qrSource = [ join(process.cwd(), qrFile), join(__dirname, '..', qrFile), diff --git a/packages/portal/src/components/qr/qr.tsx b/packages/portal/src/components/qr/qr.tsx index a0fb3d2..52ebe01 100644 --- a/packages/portal/src/components/qr/qr.tsx +++ b/packages/portal/src/components/qr/qr.tsx @@ -4,7 +4,6 @@ import { useStore, useStylesScoped$, } from '@builder.io/qwik' -import { useLocation } from '@builder.io/qwik-city' import style from './qr.css?inline' export const QR = component$(() => { @@ -19,15 +18,12 @@ export const QR = component$(() => { }, 800) }) - const location = useLocation() - const qrImage = location.query?.qr ?? 'qr.png' - return (