Skip to content

Commit

Permalink
Netpromoterscore
Browse files Browse the repository at this point in the history
  • Loading branch information
JSat3st committed Jun 24, 2022
1 parent 34935b0 commit 864a6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/themes/custom/relaunch2018/js/netpromoterscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function setCookie(cname, cvalue, exdays) {
const d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
let expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;max-age=600000";
}

function getCookie(cname) {
Expand All @@ -22,7 +22,7 @@ function getCookie(cname) {

function checkCookie() {
let user = getCookie("netpromoterscore");
if (user == "") {
if (!user) {
setCookie("netpromoterscore", 1, 90);
}
if (user == 1){
Expand Down

0 comments on commit 864a6f8

Please sign in to comment.