diff --git a/components/h5web/h5web.jsx b/components/h5web/h5web.jsx index 97098c0..f222a41 100755 --- a/components/h5web/h5web.jsx +++ b/components/h5web/h5web.jsx @@ -1,11 +1,19 @@ import "@h5web/app/dist/styles.css"; import { App, HsdsProvider } from "@h5web/app"; +import { useLocation, useSearchParams } from "react-router-dom"; // eslint-disable-next-line react/prop-types -export default function H5web({ domain, h5webParams }) { - console.log("h5web", domain); - console.log("h5webParams", h5webParams); +export default function H5web({ domain }) { + + let [searchParams, setSearchParams] = useSearchParams(); + const location = useLocation(); + + const queryParams = new URLSearchParams(location.search); + const h5webParams = queryParams.get("h5web"); + + const initialPathParams = searchParams.get("initialPath") + return (