()
| 92 | export const EXECUTOR_ORG_HEADER = EXECUTOR_ORG_SELECTOR_HEADER; |
| 93 | |
| 94 | export const getActiveOrgSlug = (): string | null => { |
| 95 | const pathname = globalThis.window?.location?.pathname; |
| 96 | if (!pathname) return null; |
| 97 | const first = pathname.split("/")[1]; |
| 98 | return first && isValidOrgSlug(first) ? first : null; |
| 99 | }; |
| 100 | |
| 101 | export const getExecutorOrganizationHeaders = (): Readonly<Record<string, string>> => { |
| 102 | const orgSlug = getActiveOrgSlug(); |
no test coverage detected