Updates
This commit is contained in:
@ -5,10 +5,12 @@ import {t} from "astro-i18n";
|
||||
---
|
||||
|
||||
<PageLayout title={t("dashboard.page")}>
|
||||
<script is:inline>
|
||||
<script>
|
||||
import {l} from "../util/util";
|
||||
if ((localStorage.getItem("sw-session") ?? "") === "") {
|
||||
window.location.href = l("/login");
|
||||
if (window.location.href.endsWith("/dashboard") || window.location.href.endsWith("/dashboard/")) {
|
||||
if ((localStorage.getItem("sw-session") ?? "") === "") {
|
||||
window.location.href = l("/login");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<Dashboard client:only="svelte" />
|
||||
|
||||
Reference in New Issue
Block a user