()
| 105 | }; |
| 106 | |
| 107 | export const getActiveOrgSlug = (): string | null => { |
| 108 | if (activeOrgSlugOverride) return activeOrgSlugOverride; |
| 109 | const pathname = globalThis.window?.location?.pathname; |
| 110 | if (!pathname) return null; |
| 111 | const first = pathname.split("/")[1]; |
| 112 | return first && isValidOrgSlug(first) ? first : null; |
| 113 | }; |
| 114 | |
| 115 | export const getExecutorOrganizationHeaders = (): Readonly<Record<string, string>> => { |
| 116 | const orgSlug = getActiveOrgSlug(); |
no test coverage detected