Skip to content
Snippets Groups Projects
Commit 24678163 authored by Austin Anderson's avatar Austin Anderson
Browse files

Add cookie expiration

parent 23f1d8cb
Branches
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ if (location.hostname !== "" && !Cookies.get("tf-cookies-accepted")) { ...@@ -4,7 +4,7 @@ if (location.hostname !== "" && !Cookies.get("tf-cookies-accepted")) {
} }
$("#tf-accept-cookies").click(function() { $("#tf-accept-cookies").click(function() {
$(".tf-cookie-warning").addClass("d-none") $(".tf-cookie-warning").addClass("d-none")
Cookies.set("tf-cookies-accepted", true) Cookies.set("tf-cookies-accepted", true, { expires: 365 })
}) })
// Navbar toggle switches // Navbar toggle switches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment