Oops, fix silly bug keeping the bulk list form open all the time

Lol I forgot to interpolate the `value` variable into the cookie and
just always set it to open lmao
This commit is contained in:
Emi Matchu 2024-01-23 04:40:05 -08:00
parent f89fdf0219
commit b28459c1cf

View file

@ -1,6 +1,6 @@
function setFormStateCookie(value) {
const thirtyDays = 60 * 60 * 24 * 30;
document.cookie = `DTIItemPageUserListsFormState=open;max-age=${thirtyDays}`;
document.cookie = `DTIItemPageUserListsFormState=${value};max-age=${thirtyDays}`;
}
const headers = document.querySelectorAll(".item-header");