7 lines
272 B
TypeScript
7 lines
272 B
TypeScript
import { parseAppHrefWithVariables } from "./base";
|
|
|
|
export const parseAppHrefWithVariablesClient = <TInput extends string | null>(url: TInput): TInput => {
|
|
if (typeof window === "undefined") return url;
|
|
return parseAppHrefWithVariables(url, window.location.href);
|
|
};
|