one cookie set function, for consistent samesite/path/expires

This commit is contained in:
Shish
2023-12-26 02:36:51 +00:00
parent 532dbdc751
commit e5c8bf7b18
9 changed files with 34 additions and 27 deletions

View File

@ -3,7 +3,7 @@
document.addEventListener('DOMContentLoaded', () => {
$('#order_pool').change(function(){
var val = $("#order_pool option:selected").val();
Cookies.set("shm_ui-order-pool", val, {path: '/', expires: 365}); //FIXME: This won't play nice if COOKIE_PREFIX is not "shm_".
shm_cookie_set("shm_ui-order-pool", val); //FIXME: This won't play nice if COOKIE_PREFIX is not "shm_".
window.location.href = '';
});
});