1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

replacing pathname

This commit is contained in:
Martin McKeaveney 2020-10-15 14:46:24 +01:00
parent fab9f8f1c8
commit 1238f85890

View file

@ -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)