1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-22 12:22:24 +00:00
bramw_baserow/web-frontend/utils/group.js

16 lines
405 B
JavaScript

const cookieGroupName = 'baserow_group_id'
export const setGroupCookie = (groupId, cookie) => {
if (process.SERVER_BUILD) return
cookie.set(cookieGroupName, groupId)
}
export const unsetGroupCookie = cookie => {
if (process.SERVER_BUILD) return
cookie.remove(cookieGroupName)
}
export const getGroupCookie = cookie => {
if (process.SERVER_BUILD) return
return cookie.get(cookieGroupName)
}