Skip to content

Commit

Permalink
Merge branch 'release/1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Oct 20, 2023
2 parents 221a98b + 7267d77 commit 4130342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cookieNotice/js/cookieNotice.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener('DOMContentLoaded', function() {
if (!document.cookie.split(';').some((item) => item.trim().startsWith('cookieNotice='))) {
document.getElementById('cookie-notice-confirmation').addEventListener('click', function() {
document.cookie = `cookieNotice=1; max-age=${60*60*24*365}; SameSite=Strict; path=/`;
document.cookie = `cookieNotice=1; max-age=${60*60*24*365}; SameSite=Lax; path=/`;
document.getElementById('cookie-notice').classList.add('cookie-notice-hidden');
});
}
Expand Down
4 changes: 2 additions & 2 deletions cookieNotice/version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<version>
<application>cookieNotice</application>
<type>plugins.generic</type>
<release>1.0.3</release>
<date>2021-06-14</date>
<release>1.0.4</release>
<date>2023-10-20</date>
<lazy-load>1</lazy-load>
<sitewide>1</sitewide>
<class>CookieNoticePlugin</class>
Expand Down

0 comments on commit 4130342

Please sign in to comment.