@@ -13,8 +13,7 @@ export const createQrCodeDocument = async (
|
||||
>,
|
||||
) => {
|
||||
const uri = Math.abs(Date.now() - EPOHE).toString(36)
|
||||
const urlBasePrefix = `${import.meta.env.BASE_URL}`.replace(/\/+$/, '')
|
||||
const url = new URL(`${urlBasePrefix}/read/${uri}`, location.origin).toString()
|
||||
const url = new URL(`/read/${uri}`, location.origin).toString()
|
||||
|
||||
const qrCodeDoc: QRCodeDocument = {
|
||||
_id: `qr_code:${uri}`,
|
||||
|
||||
Reference in New Issue
Block a user