UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

12 lines (11 loc) 273 B
/** * Used to retrieve the origin from a url * * @remarks * Uses a regex to get origin (can't handle localhost origins) * * @param url - URL * @returns The origin of the url */ export declare const getOrigin: (url: string) => string; export default getOrigin;