eslint nanny strikes again

This commit is contained in:
Andrew Bauer 2020-08-08 11:19:29 -05:00
parent 96bd6397c6
commit b626e0de1c
1 changed files with 8 additions and 8 deletions

View File

@ -588,14 +588,14 @@ function setButtonState(element_id, butClass) {
}
}
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
function setCookie(name, value, days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function delCookie(name) {