From 246781638ef19b0e959258768c03a2084fb94a4a Mon Sep 17 00:00:00 2001
From: Austin Anderson <angerson@google.com>
Date: Wed, 24 May 2023 10:35:05 -0700
Subject: [PATCH] Add cookie expiration

---
 tf_oss_dashboard/script.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tf_oss_dashboard/script.js b/tf_oss_dashboard/script.js
index 63e0cbf..e9f7a1e 100644
--- a/tf_oss_dashboard/script.js
+++ b/tf_oss_dashboard/script.js
@@ -4,7 +4,7 @@ if (location.hostname !== "" && !Cookies.get("tf-cookies-accepted")) {
 }
 $("#tf-accept-cookies").click(function() {
   $(".tf-cookie-warning").addClass("d-none")
-  Cookies.set("tf-cookies-accepted", true)
+  Cookies.set("tf-cookies-accepted", true, { expires: 365 })
 })
 
 // Navbar toggle switches
-- 
GitLab