Browse Source

replacing pathname

gh-pages
Martin McKeaveney 6 years ago
parent
commit
1238f85890
  1. 2
      packages/client/src/render/getAppId.js

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

@ -3,7 +3,7 @@ export const parseAppIdFromCookie = docCookie => {
docCookie.split(";").find(c => c.trim().startsWith("budibase:token")) ||
docCookie.split(";").find(c => c.trim().startsWith("builder:token"))
if (!cookie) return location.pathname.replace("/")
if (!cookie) return location.pathname.replace(/\//g, "")
const base64Token = cookie.substring(lengthOfKey)

Loading…
Cancel
Save