budibase/packages/client/src/render/getAppId.js

6 lines
132 B
JavaScript
Raw Normal View History

2020-06-14 21:30:23 +02:00
export const getAppId = cookie =>
cookie
.split(";")
.find(c => c.trim().startsWith("budibase:appid"))
.split("=")[1]