更新 'app/views/shared/components/_cookie_warning.html.erb'

This commit is contained in:
zhongjin 2023-02-18 15:02:59 +08:00
parent de8fb19e64
commit 12a0d34f75

View File

@ -14,12 +14,6 @@
%>
<% if cookies && cookies['cookie_consented'] != 'true' %>
<%
var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear() + 1); //1 year from now
document.cookie = "cookie_consented=true; path=/; expires=" + cookieDate.toUTCString() + ";"
%>
<!--
<div class="primary-lighten cookies-banner fixed-bottom text-center d-inline-block">
<div class="cookies-banner-content py-3">