mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-22 12:22:24 +00:00
16 lines
405 B
JavaScript
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)
|
|
}
|