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