From b626e0de1c4ef5e10b0dd5d41a42d627ca226d45 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 8 Aug 2020 11:19:29 -0500 Subject: [PATCH] eslint nanny strikes again --- web/skins/classic/js/skin.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index baca79ef6..d98169b45 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -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) {