chore: update QR URL to use window.location.origin instead of hardcoded local IP
This commit is contained in:
parent
cbd63f0648
commit
39e78eb77a
@ -48,8 +48,8 @@ export default function Dashboard() {
|
||||
return;
|
||||
}
|
||||
|
||||
const qrUrl = `http://10.20.2.107:5173/ar/${data.id}`;
|
||||
// const qrUrl = `${window.location.origin}/v/${data.id}`;
|
||||
// const qrUrl = `http://10.20.2.107:5173/ar/${data.id}`;
|
||||
const qrUrl = `${window.location.origin}/ar/${data.id}`;
|
||||
|
||||
const qrImage = await QRCode.toDataURL(qrUrl, {
|
||||
width: 512,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user