10 lines
202 B
TypeScript
10 lines
202 B
TypeScript
export const getBasePath = (): string => {
|
|
if (
|
|
typeof window !== "undefined" &&
|
|
window?.location?.pathname?.includes("/admin/bridge")
|
|
) {
|
|
return "/admin/bridge/";
|
|
}
|
|
|
|
return "/";
|
|
};
|