mirror of https://github.com/Budibase/budibase.git
3 changed files with 17 additions and 8 deletions
@ -1,3 +1,4 @@ |
|||
export const getAppIdFromPath = () => { |
|||
return location.pathname.split("/")[1] |
|||
let appId = location.pathname.split("/")[1] |
|||
return appId.startsWith("app_") ? appId : undefined |
|||
} |
|||
|
|||
Loading…
Reference in new issue