index.ts 181 B

12345
  1. export const useDomain = () => {
  2. const { origin, pathname } = location;
  3. const hasSuffix = pathname.match(/\/KasiteWeb\//);
  4. return `${origin}${hasSuffix ? '/KasiteWeb' : ''}`;
  5. };