feat: add privacy policy

This commit is contained in:
Samuel 2025-01-23 16:35:37 +01:00
parent f571ea151e
commit 7d63872c08
5 changed files with 104 additions and 3 deletions

View file

@ -17,6 +17,8 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
);
}
const NO_DATA_NEEDED_PAGES = ["/", "/privacy"];
if (root) {
render(
() => (
@ -27,7 +29,7 @@ if (root) {
const navigate = useNavigate();
createEffect(() => {
if (!dbLoaded() && !hasCashedData() && props.location.pathname !== "/") {
if (!dbLoaded() && !hasCashedData() && !NO_DATA_NEEDED_PAGES.includes(props.location.pathname)) {
navigate("/");
}
});