Remove Docker config and fix inline scripts
This commit is contained in:
parent
324050ee38
commit
aba96f95a2
12 changed files with 79 additions and 84 deletions
|
|
@ -42,14 +42,14 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.querySelector("#age-verification-reject")!.addEventListener("click", () => {
|
||||
<script is:inline>
|
||||
document.querySelector("#age-verification-reject").addEventListener("click", () => {
|
||||
window.location.href = "about:blank";
|
||||
});
|
||||
document.querySelector("#age-verification-accept")!.addEventListener("click", () => {
|
||||
document.querySelector("#age-verification-accept").addEventListener("click", () => {
|
||||
localStorage.setItem("ageVerified", "true");
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
window.location.href = params.get("redirect") || "/";
|
||||
window.location.href = decodeURIComponent(params.get("redirect") || "/");
|
||||
});
|
||||
</script>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue