WebFM/webfm/static/js/cookie-manager.js

9 lines
275 B
JavaScript

const getCookie = (cookieKey) => {
return Cookies.get(cookieKey);
}
const setCookie = (key, value, args = { expires: new Date('December 31, 2034 03:24:00'),
path: '/' }) => {
Cookies.set(key, value, args);
}